From d9d1c4180c86f38653ebdb0eb2e0a9d5865df0de Mon Sep 17 00:00:00 2001 From: Felipe Lema <1232306+FelipeLema@users.noreply.github.com> Date: Fri, 21 Feb 2020 14:35:35 -0300 Subject: [PATCH 2/2] "use this script file" should be local to interpreter we're using --- lisp/ob-shell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el index 6c8ca9652..8dce9c7dd 100644 --- a/lisp/ob-shell.el +++ b/lisp/ob-shell.el @@ -240,7 +240,8 @@ return the value of the last statement in BODY." (with-temp-buffer (call-process-shell-command (concat (if shebang script-file - (format "%s %s" shell-file-name script-file)) + (format "%s %s" shell-file-name + (file-local-name script-file))) (and cmdline (concat " " cmdline))) stdin-file (current-buffer)) -- 2.16.4