summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
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")))