summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-02 20:11:07 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-02 20:11:07 +0000
commit3f9e315acf720bc0e70f34a75d22f18831ef34df (patch)
tree2604713bd960b0f13c66c70fcfbb952dbbc9efe3 /lisp/shell.el
parentfb145562db02c6a9a20c3c25e34d61dcafe4f9e3 (diff)
downloademacs-3f9e315acf720bc0e70f34a75d22f18831ef34df.tar.gz
(shell-mode): Compare the truename with /dev/null.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 98c3b48fc69..6571c0d4d58 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -347,7 +347,7 @@ 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")
+ (if (equal (file-truename 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")))