summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/shell.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 9d732bd3fd9..1d4dfcef3c1 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -357,7 +357,8 @@ buffer."
((string-equal shell "ksh") "~/.sh_history")
(t "~/.history"))))
(if (or (equal comint-input-ring-file-name "")
- (equal (file-truename comint-input-ring-file-name) "/dev/null"))
+ (equal (file-truename comint-input-ring-file-name)
+ (file-truename "/dev/null")))
(setq comint-input-ring-file-name nil))
(setq shell-dirstack-query
(cond ((string-equal shell "sh") "pwd")