Kyle Meyer <k...@kyleam.com> writes: > Rudi C writes: > >> #+BEGIN_SRC zsh :session z1 >> echo $HOME $0 >> #+END_SRC >> >> #+RESULTS: >> : /Users/evar /bin/bash > > What version of Org are you using? > > I tried with both the latest release (9.3.7) and the current master > branch (220f2b0d9), using default configuration aside from > > (org-babel-do-load-languages > 'org-babel-load-languages > '((shell . t))) > > I see "/usr/bin/zsh" in both cases. > >
I was able to reproduce it (with ksh, rather than zsh) on Org mode version 9.3.7 (release_9.3.7-705-gea9463 @ /home/nick/elisp/org-mode/lisp/). --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC ksh :session z1 echo $HOME $0 $(which $0) #+END_SRC #+RESULTS: : /home/nick /bin/bash /bin/bash #+BEGIN_SRC ksh echo $HOME $0 $(which $0) #+END_SRC #+RESULTS: : /home/nick ksh /usr/bin/ksh --8<---------------cut here---------------end--------------->8--- -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler