emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] ob-shell: :shebang changes interpretation of :cmdline


From: Max Nikulin
Subject: [BUG] ob-shell: :shebang changes interpretation of :cmdline
Date: Sat, 18 Nov 2023 22:54:39 +0700
User-agent: Mozilla Thunderbird

Hi,

Trying to figure out the origin of the confusion with
"bash -c bash /path/to/file-containing-the-source-code.sh"
I have faced an inconsistency with :cmdline treatment in ob-shell.el. I expect same results in the following cases:

#+begin_src bash :cmdline 1 2 3
  printf "%s\n" "$1"
#+end_src

#+RESULTS:
: 1

#+begin_src bash :cmdline 1 2 3 :shebang #!/bin/bash
  printf "%s\n" "$1"
#+end_src

#+RESULTS:
: 1 2 3

Emacs-28, Org is the current git HEAD.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]