Nick Dokos writes: > 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
Hmm. If you step through org-babel-execute:shell, is shell-file-name bound to the expected value of "ksh" (which should be let-bound outside by org-babel-execute:ksh)?