* test/lisp/eshell/eshell-tests.el (with-temp-eshell):

Avoid permanently changing HISTFILE.
This commit is contained in:
Glenn Morris 2018-12-09 15:54:35 -08:00
parent f8179cd366
commit 87bc518afc

View file

@ -33,7 +33,7 @@
`(let* ((eshell-directory-name (make-temp-file "eshell" t))
;; We want no history file, so prevent Eshell from falling
;; back on $HISTFILE.
(_ (setenv "HISTFILE"))
(process-environment (cons "HISTFILE" process-environment))
(eshell-history-file-name nil)
(eshell-buffer (eshell t)))
(unwind-protect