(sh-shell-file): Downcase and remove extension on shells in NT.
This commit is contained in:
parent
c5c890bac4
commit
5c4491697a
1 changed files with 3 additions and 3 deletions
|
@ -103,10 +103,10 @@ shell it really is.")
|
|||
|
||||
(defvar sh-shell-file
|
||||
(or
|
||||
;; On MSDOS, collapse $SHELL to lower-case and remove the
|
||||
;; executable extension, so comparisons with the list of
|
||||
;; On MSDOS and Windows, collapse $SHELL to lower-case and remove
|
||||
;; the executable extension, so comparisons with the list of
|
||||
;; known shells work.
|
||||
(and (eq system-type 'ms-dos)
|
||||
(and (memq system-type '(ms-dos windows-nt))
|
||||
(file-name-sans-extension (downcase (getenv "SHELL"))))
|
||||
(getenv "SHELL")
|
||||
"/bin/sh")
|
||||
|
|
Loading…
Add table
Reference in a new issue