diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-14 19:33:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-14 19:33:54 -0700 |
commit | 0463c1ef26bf2d3dc3ea8a3de20e4446c1a55e64 (patch) | |
tree | 2ac270452bdf6a1404d80c216b07cf3caaaa2e9f /lisp/shell.el | |
parent | b43f6451c82dd67e54fd2c30eb54b1ea1236c6e6 (diff) | |
download | emacs-0463c1ef26bf2d3dc3ea8a3de20e4446c1a55e64.tar.gz |
* shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x.
The hack didn't work outside English locales anyway.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r-- | lisp/shell.el | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 51a0ffc4fe8..a78ab7f81ab 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -284,21 +284,9 @@ Value is a list of strings, which may be nil." ;; Note: There are no explicit references to the variable `explicit-bash-args'. ;; It is used implicitly by M-x shell when the interactive shell is `bash'. (defcustom explicit-bash-args - (let* ((prog (or (and (boundp 'explicit-shell-file-name) explicit-shell-file-name) - (getenv "ESHELL") shell-file-name)) - (name (file-name-nondirectory prog))) - ;; Tell bash not to use readline, except for bash 1.x which - ;; doesn't grok --noediting. Bash 1.x has -nolineediting, but - ;; process-send-eof cannot terminate bash if we use it. - (if (and (not purify-flag) - (equal name "bash") - (file-executable-p prog) - (string-match "bad option" - (shell-command-to-string - (concat (shell-quote-argument prog) - " --noediting")))) - '("-i") - '("--noediting" "-i"))) + ;; Tell bash not to use readline. It's safe to assume --noediting now, + ;; as it was introduced in 1996 in Bash version 2. + '("--noediting" "-i") "Args passed to inferior shell by \\[shell], if the shell is bash. Value is a list of strings, which may be nil." :type '(repeat (string :tag "Argument")) |