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
commitdba8ffd45b88a7730b7299a398326db31cf46036 (patch)
tree2f256d9ef526524bc17532242b441e5cf52fe84a /lisp/shell.el
parente245e8c5bf02fc5777bd41bc890dbad6e035e09e (diff)
downloademacs-dba8ffd45b88a7730b7299a398326db31cf46036.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)