Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5c449169
Commit
5c449169
authored
Jan 07, 1997
by
Richard M. Stallman
Browse files
(sh-shell-file): Downcase and remove extension on shells in NT.
parent
c5c890ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/progmodes/sh-script.el
lisp/progmodes/sh-script.el
+3
-3
No files found.
lisp/progmodes/sh-script.el
View file @
5c449169
...
...
@@ -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
(
e
q
system-type
'ms-dos
)
(
and
(
mem
q
system-type
'
(
ms-dos
windows-nt
)
)
(
file-name-sans-extension
(
downcase
(
getenv
"SHELL"
))))
(
getenv
"SHELL"
)
"/bin/sh"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment