From 3c24374d1455125915edae88c6408ecdb4bbbf48 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 1 Jul 1994 20:45:59 +0000 Subject: [PATCH] (shell-mode): Don't read history from /dev/null. --- lisp/shell.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/shell.el b/lisp/shell.el index 8c38328b82f..010af64ba1f 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -346,6 +346,8 @@ 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") + (setq comint-input-ring-file-name nil)) (setq shell-dirstack-query (if (string-match "^k?sh$" shell) "pwd" "dirs"))) (run-hooks 'shell-mode-hook) -- 2.39.5