Commit 3f9e315a authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(shell-mode): Compare the truename with /dev/null.

parent fb145562
......@@ -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")))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment