diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-01-07 09:02:48 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-01-07 09:02:48 +0000 |
commit | a9141c9d79e0e912d2c5d34d48f9f2145d0c66cf (patch) | |
tree | 693e8083bd964974e7af9088adf8905adf1d7bb1 /lisp/progmodes/sh-script.el | |
parent | 1eaa74fc18b4b86beb30043e1ae7bc6c34d2fb7d (diff) | |
download | emacs-a9141c9d79e0e912d2c5d34d48f9f2145d0c66cf.tar.gz |
(sh-shell-file): Downcase and remove extension on shells in NT.
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r-- | lisp/progmodes/sh-script.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 299b4527016..6ba2856938f 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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") |