summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-01 20:45:59 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-01 20:45:59 +0000
commit3c24374d1455125915edae88c6408ecdb4bbbf48 (patch)
tree35a7f18bd8c1c140ebd14bedbf14a515320f5a06 /lisp/shell.el
parent1e2300d39b87ddd99a8b1a0ae5ed9a6753a38241 (diff)
downloademacs-3c24374d1455125915edae88c6408ecdb4bbbf48.tar.gz
(shell-mode): Don't read history from /dev/null.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 8c38328b82f..010af64ba1f 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -346,6 +346,8 @@ buffer."
(cond ((string-equal shell "bash") "~/.bash_history")
((string-equal shell "ksh") "~/.sh_history")
(t "~/.history"))))
+ (if (equal comint-input-ring-file-name "/dev/null")
+ (setq comint-input-ring-file-name nil))
(setq shell-dirstack-query
(if (string-match "^k?sh$" shell) "pwd" "dirs")))
(run-hooks 'shell-mode-hook)