]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/eshell/eshell-tests.el (with-temp-eshell):
authorGlenn Morris <rgm@gnu.org>
Sun, 9 Dec 2018 23:54:35 +0000 (15:54 -0800)
committerGlenn Morris <rgm@gnu.org>
Sun, 9 Dec 2018 23:56:48 +0000 (15:56 -0800)
Avoid permanently changing HISTFILE.

test/lisp/eshell/eshell-tests.el

index cefbeef5677c3ba26d36bd2b4b517ebef7448e4f..330dd87ae4cc82b367cc09ef8f3db2977dbfcd8e 100644 (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