[gnu.emacs.bug] SHELL vs ESHELL, a workaround

pinard@EDDIE.MIT.EDU (Francois Pinard) (02/12/90)

In GNU Emacs 18.54.2 of Sat Feb 10 1990 on icule (usg-unix-v)

For my previous message about SHELL vs ESHELL with suspend-emacs where
there is no job control, I have a satisfactory workaround.

suspend-emacs looks directly at the SHELL environment variable, while
shell-command and shell-command-on-region looks only indirectly to it
through the elisp variable shell-file-name, which itself gets
initialized after the SHELL environment variable.

It is sufficient to change the value of shell-file-name in the .emacs
file.  So, the selected shells will be:

	suspend-emacs		from SHELL (set in .bash_login)
	shell			from ESHELL (set in .bash_login)
	shell-command		from shell-file-name (set in .emacs)

-- 
Franc,ois Pinard                                    pinard@iro.umontreal.ca
(514) 588-4656            ``Vivement GNU!''          ...!uunet!iros1!pinard