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
commit9ee55f41fd320549bb5635d1f13037f3406a7664 (patch)
treeee3aa9bc0e0bc435864056a1f036ee389bc0d070 /lisp/shell.el
parent773d6f5b2ab8b472f8b2190621251302ecaddf66 (diff)
downloademacs-9ee55f41fd320549bb5635d1f13037f3406a7664.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")))