From: Richard M. Stallman Date: Fri, 1 Jul 1994 20:45:59 +0000 (+0000) Subject: (shell-mode): Don't read history from /dev/null. X-Git-Tag: emacs-19.34~7742 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c24374d1455125915edae88c6408ecdb4bbbf48;p=emacs.git (shell-mode): Don't read history from /dev/null. --- 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)