1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-25 07:27:57 +00:00
org-mode/lisp
Ihor Radchenko b64dbd838f
org-babel-sh-evaluate: Always provide shebang in script files
* lisp/ob-shell.el (org-babel-sh-evaluate): When running src block as
script file, make sure that shebang is always added on top.  This is
to prevent <shell> <script> command in shells like dash form using
/bin/sh to evaluate scripts without shebang.  (In contrast with bash
that uses itself).  Add comment highlighting that
`with-connetion-local-variables' sets `shell-file-name' and
`shell-command-switch' as necessary.
*
testing/lisp/test-ob-shell.el (test-ob-shell/remote-with-stdin-or-cmdline):
Add new test.

Reported-by: Max Nikulin <manikulin@gmail.com>
Link: https://list.orgmode.org/orgmode/v0an63$3n2$1@ciao.gmane.io/
2024-06-27 15:07:19 +02:00
..
Makefile Fix parallel execution of Makefiles 2024-06-20 18:27:04 +02:00
ob-awk.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-C.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-calc.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ob-clojure.el ob-clojure-cli-command: Fix :type declaration 2024-06-15 16:45:54 +02:00
ob-comint.el Add missing :package-version keywords to new and changed `defcustom' 2024-05-21 13:15:12 +02:00
ob-core.el org-babel-merge-params: Rename plists to alists 2024-06-23 11:11:12 +02:00
ob-css.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-ditaa.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-dot.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-emacs-lisp.el fixup! lisp/ob-emacs-lisp.el: Throw an error when session is requested 2024-04-09 16:35:44 +03:00
ob-eshell.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ob-eval.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-exp.el org-babel-exp-process-buffer: Fix edge case when src block ends at eob 2024-06-13 17:26:02 +02:00
ob-forth.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-fortran.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-gnuplot.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-groovy.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-haskell.el ob-haskell: Remove FIXME 2024-05-21 15:58:40 +02:00
ob-java.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-js.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-julia.el ob-R, ob-julia: Do not force-start session in Org Src buffers 2024-01-28 20:04:31 +01:00
ob-latex.el org-babel-latex-process-alist: Use latemk or run latex trice 2024-06-03 16:32:02 +02:00
ob-lilypond.el lisp/ob-lilypond.el (org-src-lang-modes): Fix alist value 2024-06-15 16:33:12 +02:00
ob-lisp.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-lob.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-lua.el ob-lua: Do not confuse list-like strings with lists 2024-06-15 14:59:09 +02:00
ob-makefile.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-matlab.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-maxima.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-ocaml.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-octave.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-org.el Clean up spacing to pass Emacs's pre-commit check 2024-05-27 21:18:59 -04:00
ob-perl.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-plantuml.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-processing.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-python.el ob-R, ob-python, ob-shell: Fix async indicator regexps 2024-06-26 14:59:47 +02:00
ob-R.el ob-R, ob-python, ob-shell: Fix async indicator regexps 2024-06-26 14:59:47 +02:00
ob-ref.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-ruby.el lisp/ob-comint.el: Introduce a fallback prompt regexp 2024-02-09 17:35:58 +01:00
ob-sass.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-scheme.el lisp/ob-scheme.el: Fix mit-scheme evaluation 2024-05-19 15:38:45 +02:00
ob-screen.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-sed.el ob-*: Do not emit redundant messages about code block evaluation 2024-06-13 15:22:28 +02:00
ob-shell.el org-babel-sh-evaluate: Always provide shebang in script files 2024-06-27 15:07:19 +02:00
ob-sql.el ob-sql: Quote all the shell arguments originating from Org buffer 2024-06-12 15:40:31 +02:00
ob-sqlite.el ob-sqlite: Add ability to open a database in readonly mode 2024-06-25 12:53:52 +02:00
ob-table.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-tangle.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ob.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-basic.el org: New Org-wide custom option `org-sort-function' 2024-05-11 12:34:30 +03:00
oc-biblatex.el oc-biblatex: Allow native biblatex options in CITE_EXPORT 2024-04-26 15:23:29 +03:00
oc-bibtex.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc-csl.el oc-csl: New custom option `org-cite-csl-bibtex-titles-to-sentence-case' 2024-06-20 07:41:56 +02:00
oc-natbib.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ol-bbdb.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-bibtex.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-docview.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-doi.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ol-eshell.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-eww.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-gnus.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-info.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-irc.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-man.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-mhe.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-rmail.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ol-w3m.el Backport commit 0f3be9596 from Emacs 2024-05-28 22:58:43 -04:00
ol.el Merge branch 'bugfix' 2024-06-22 17:59:26 +02:00
org-agenda.el org-agenda: Fix multi-day ranges with non-nil `org-agenda-default-appointment-duration' 2024-06-09 14:25:58 +02:00
org-archive.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-attach-git.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-attach.el org-attach-dir-from-id: Search existing attachments for symlinks 2024-06-14 13:40:42 +02:00
org-capture.el org-capture-templates: Allow headline/olp target to be function or symbol 2024-06-18 14:33:55 +02:00
org-clock.el org-clock-sum: Gracefully skip invalid CLOCK lines 2024-06-14 15:29:08 +02:00
org-colview.el lisp/org-colview.el: Prevent repeated indentation of keyword lines 2024-06-18 14:50:53 +02:00
org-compat.el lisp/org-compat.el: Allow using imenu to visit non-leaf headlines 2024-06-17 15:20:33 +02:00
org-crypt.el Never pass error message verbatim as the first argument for message'/error' 2024-02-25 13:15:04 +03:00
org-ctags.el org-ctags: Don't assume ctags-program-name is bound 2024-05-28 23:23:39 -04:00
org-cycle.el Backport commit 77d0eed74 from Emacs 2024-06-09 20:50:50 -04:00
org-datetree.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-duration.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-element-ast.el ; fix typos 2024-06-19 17:34:31 +02:00
org-element.el Merge branch 'bugfix' 2024-06-22 17:59:26 +02:00
org-entities.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-faces.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-feed.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-fold-core.el Fix indirect buffer tracking 2024-06-10 11:16:00 +02:00
org-fold.el Do not use org-fold to hide link parts 2024-05-02 12:29:27 +03:00
org-footnote.el Backport commit 77d0eed74 from Emacs 2024-06-09 20:50:50 -04:00
org-goto.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-habit.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-id.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-indent.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-inlinetask.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-keys.el (org-*-in-calendar): Prefer apply' to eval' 2024-06-15 16:26:39 +02:00
org-lint.el org-lint: New linter for malformed CLOCK: lines 2024-06-14 15:35:59 +02:00
org-list.el org-update-checkbox-count: Do not move point beyond current heading 2024-06-17 17:21:01 +02:00
org-macro.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-macs.el Backport commit 331573e40 from Emacs 2024-06-10 18:29:36 -04:00
org-mobile.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-mouse.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-num.el org-num-skip-tags: Avoid using function that is not pre-loaded in autoloads 2024-06-14 14:25:03 +02:00
org-pcomplete.el Backport commit 77d0eed74 from Emacs 2024-06-09 20:50:50 -04:00
org-persist.el org-persist: Avoid interactive query for coding system when computing hash 2024-06-27 12:07:29 +02:00
org-plot.el org-plot: Respect parameters given in `org-plot/preset-plot-types' 2024-06-18 16:24:17 +02:00
org-protocol.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-refile.el org-refile-get-location: Fix outline path to a symlink of current buffer 2024-06-20 16:48:28 +02:00
org-src.el lisp/org-src.el (org-src-lang-modes): Fix :type definition 2024-06-15 16:15:45 +02:00
org-table.el orgtbl-gather-send-defs: Fix infinite loop when table is at bob 2024-06-12 15:31:45 +02:00
org-tempo.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org-timer.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
org.el Merge branch 'bugfix' 2024-06-27 11:53:49 +02:00
ox-ascii.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-beamer.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-html.el Reapply "lisp/ox-html.el: Restore org-svg class." 2024-06-03 11:16:15 +02:00
ox-icalendar.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-koma-letter.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-latex.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-man.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-md.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-odt.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-org.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-publish.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox-texinfo.el Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00
ox.el Use emacs-internal coding system to read/write Elisp data 2024-06-15 15:45:40 +02:00