diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-25 01:42:05 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-25 01:42:05 +0000 |
commit | 46f939faa0ea226ce4afbf451d826bba29fddfa7 (patch) | |
tree | e2abbc109932ec8104dcfd22ded973617bd7c80a | |
parent | a87dc37c326dfd1e7699ed6a40d27e014877b971 (diff) | |
download | emacs-46f939faa0ea226ce4afbf451d826bba29fddfa7.tar.gz |
(sh-shell-arg): Don't add any options for bash, ksh.
-rw-r--r-- | lisp/progmodes/sh-script.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 7ec52dcfcff..fcc3c800cae 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -105,11 +105,14 @@ shell it really is.") "*The executable file name for the shell being programmed.") +;; bash and ksh do not need any options when run in a shell script, +;; and Bill_Mann@praxisint.com says -p with ksh can do harm. (defvar sh-shell-arg - '((bash . "-norc") + '((bash) (csh . "-f") - (ksh88 eval progn nil (if (file-exists-p "/etc/suid_profile") nil "-p")) (pdksh) + (ksh88) + ;; Bill_Mann@praxisint.com says -p may be wrong for this too. (rc . "-p") (wksh . "-motif") (zsh . "-f")) |