Variable: sh-shell-file
sh-shell-file is a customizable variable defined in sh-script.el.gz.
Value
"/bin/sh"
Documentation
The executable file name for the shell being programmed.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defcustom sh-shell-file
(or
;; On MSDOS and Windows, collapse $SHELL to lower-case and remove
;; the executable extension, so comparisons with the list of
;; known shells work.
(and (memq system-type '(ms-dos windows-nt))
(let* ((shell (getenv "SHELL"))
(shell-base
(and shell (file-name-nondirectory shell))))
;; shell-script mode doesn't support DOS/Windows shells,
;; so use the default instead.
(if (or (null shell)
(member (downcase shell-base)
'("command.com" "cmd.exe" "4dos.com" "ndos.com"
"cmdproxy.exe")))
"/bin/sh"
(file-name-sans-extension (downcase shell)))))
(getenv "SHELL")
"/bin/sh")
"The executable file name for the shell being programmed."
:type 'string
:group 'sh-script)