* w32-fns.el (w32-shell-name): Use `shell-file-name' instead of

the `explicit-shell-file-name' because that is the non-interactive shell.
This commit is contained in:
Sam Steingold 2011-01-07 14:07:29 -05:00
parent 8c51d2a2c2
commit d43bb7d312
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-01-07 Sam Steingold <sds@gnu.org>
* w32-fns.el (w32-shell-name): Use `shell-file-name' instead of
the `explicit-shell-file-name' because that is the
non-interactive shell.
2011-01-07 Chong Yidong <cyd@stupidchicken.com>
* subr.el (y-or-n-p): Accept format string args.

View file

@ -57,7 +57,7 @@ That includes all Windows systems except for 9X/Me."
(defun w32-shell-name ()
"Return the name of the shell being used."
(or (bound-and-true-p explicit-shell-file-name)
(or (bound-and-true-p shell-file-name)
(getenv "ESHELL")
(getenv "SHELL")
(and (w32-using-nt) "cmd.exe")