aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-03-25 01:42:05 +0000
committerRichard M. Stallman <[email protected]>1996-03-25 01:42:05 +0000
commit8e46e267494a878de21b48fc974c41c253e1502d (patch)
tree30ebe727015e3a692bd1e504eff027551ab2d18c /lisp
parent2c01dfb7719678aa96c39a26182dc1b95ba80697 (diff)
(sh-shell-arg): Don't add any options for bash, ksh.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/sh-script.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 7ec52dcfcf..fcc3c800ca 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 [email protected] 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)
+ ;; [email protected] says -p may be wrong for this too.
(rc . "-p")
(wksh . "-motif")
(zsh . "-f"))