Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site cucca.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!columbia!cucca!howie From: howie@cucca.UUCP (Howie Kaye) Newsgroups: net.emacs Subject: Bug in Shell handling in GNUemacs V16.60 Message-ID: <155@cucca.UUCP> Date: Sun, 17-Nov-85 18:01:23 EST Article-I.D.: cucca.155 Posted: Sun Nov 17 18:01:23 1985 Date-Received: Tue, 19-Nov-85 03:28:25 EST Reply-To: howie@cucca.UUCP (Howie Kaye) Organization: Columbia University Center for Computing Activities Lines: 28 There was a bug in gnuemacs, where it was not using the shell specified in the user's ESHELL variable for shell-commands. Emacs was instead using a variable shell-file-name. This variable is set to the value of the shell's SHELL variable in init_callproc in callproc.c, but the ESHELL variable was ignored. The diffs for a fix to the file "callproc.c" are given below. 296c296,297 < sh = (char *) getenv ("SHELL"); --- > sh = (char *) getenv ("ESHELL"); > if (!sh) sh = (char *) getenv ("SHELL"); 304c305,306 < Initialized from the SHELL environment variable."); --- > Initialized from the ESHELL environment variable, or the SHELL\n\ > environment variable if ESHELL doesn't exist."); Howie Kaye Sy.Howie@CU20B.ARPA Columbia University HKAUS@cuvma (bitnet) System'sf Integration Group {...}!seismo!columbia!cucca!howie -- Howie Kaye Sy.Howie@CU20B.ARPA Columbia University HKAUS@cuvma (bitnet) System's Integration Group {?}!seismo!columbia!cucca!howie