0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 01:32:53 +00:00

* lisp/ob-eval.el (org-babel--get-shell-file-name): Update fixme

This commit is contained in:
Ihor Radchenko 2022-11-24 09:47:55 +08:00
parent 28f220d1da
commit 1cdac8ef6a
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -159,7 +159,8 @@ This buffer is named by `org-babel-error-buffer-name'."
"Return system `shell-file-name', defaulting to /bin/sh.
Unfortunately, `executable-find' does not support file name
handlers. Therefore, we could use it in the local case only."
;; FIXME: This is generic enough that it should probably be in emacs, not org-mode
;; FIXME: Since Emacs 27, `executable-find' accepts optional second
;; argument supporting remote hosts.
(cond ((and (not (file-remote-p default-directory))
(executable-find shell-file-name))
shell-file-name)