]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-shell-file): Downcase and remove extension on shells in NT.
authorRichard M. Stallman <rms@gnu.org>
Tue, 7 Jan 1997 09:02:48 +0000 (09:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 7 Jan 1997 09:02:48 +0000 (09:02 +0000)
lisp/progmodes/sh-script.el

index 299b45270162a972e93e75e6c0a5e30d1e7b8dc8..6ba2856938fe21119f4f2103b1bc18ba35d8888d 100644 (file)
@@ -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")