# HG changeset patch # User Richard M. Stallman # Date 827718125 0 # Node ID b39dde411ac8c8fdcf91b44010378d1e3cccc1ae # Parent 27f8bccdb985df76e8d21f88f38e52d82b883c09 (sh-shell-arg): Don't add any options for bash, ksh. diff -r 27f8bccdb985 -r b39dde411ac8 lisp/progmodes/sh-script.el --- a/lisp/progmodes/sh-script.el Mon Mar 25 00:37:45 1996 +0000 +++ b/lisp/progmodes/sh-script.el Mon Mar 25 01:42:05 1996 +0000 @@ -105,11 +105,14 @@ "*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"))