From: Richard M. Stallman Date: Mon, 25 Mar 1996 01:42:05 +0000 (+0000) Subject: (sh-shell-arg): Don't add any options for bash, ksh. X-Git-Tag: emacs-19.34~984 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e46e267494a878de21b48fc974c41c253e1502d;p=emacs.git (sh-shell-arg): Don't add any options for bash, ksh. --- 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"))