From fbcb305501ecba980857af2c3e315a2ccb14d689 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 26 Aug 1996 15:33:13 +0000 Subject: [PATCH] (shell-mode): Don't assume /dev/null is its own truename. --- lisp/shell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.39.2