]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/shell.el (explicit-shell-file-name): Mention shell-file-name
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Aug 2017 04:05:00 +0000 (00:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Aug 2017 04:05:00 +0000 (00:05 -0400)
* lisp/files.el (insert-directory): Don't hardcode "-c".
* lisp/term.el (term, ansi-term): Use shell-file-name.

lisp/files.el
lisp/shell.el
lisp/term.el

index 96647fb2626f70a871216b0331322e555804d4e0..89f6f9f44dc2bbd892c0db2847792c0dba80dac0 100644 (file)
@@ -6701,7 +6701,7 @@ normally equivalent short `-D' option is just passed on to
                        ;; See eg dired-safe-switches-p.
                        (call-process
                         shell-file-name nil t nil
-                        "-c"
+                        shell-command-switch
                         (concat (if (memq system-type '(ms-dos windows-nt))
                                     ""
                                   "\\") ; Disregard Unix shell aliases!
index c5e5cbbee7e43db545b269d7c7b7f37453bad269..ea7f0beebb0a57c5ac33ade628585c005207c5f5 100644 (file)
@@ -264,7 +264,9 @@ see the function `dirtrack-mode'."
   :group 'shell-directories)
 
 (defcustom explicit-shell-file-name nil
-  "If non-nil, is file name to use for explicitly requested inferior shell."
+  "If non-nil, is file name to use for explicitly requested inferior shell.
+When nil, such interactive shell sessions fallback to using either
+the shell specified in $ESHELL or in `shell-file-name'."
   :type '(choice (const :tag "None" nil) file)
   :group 'shell)
 
index 063a6ea592f5a18745895319e0796ccdca98bef7..5eb7b3e8ede67fb01c36d69fcd67c5b1ee611244 100644 (file)
@@ -1354,8 +1354,7 @@ commands to use in that buffer.
   (interactive (list (read-from-minibuffer "Run program: "
                                           (or explicit-shell-file-name
                                               (getenv "ESHELL")
-                                              (getenv "SHELL")
-                                              "/bin/sh"))))
+                                              shell-file-name))))
   (set-buffer (make-term "terminal" program))
   (term-mode)
   (term-char-mode)
@@ -4149,8 +4148,7 @@ the process.  Any more args are arguments to PROGRAM."
   (interactive (list (read-from-minibuffer "Run program: "
                                           (or explicit-shell-file-name
                                               (getenv "ESHELL")
-                                              (getenv "SHELL")
-                                              "/bin/sh"))))
+                                              shell-file-name))))
 
   ;; Pick the name of the new buffer.
   (setq term-ansi-buffer-name