summaryrefslogtreecommitdiff
path: root/test/lisp/eshell/eshell-tests.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-12-09 15:54:35 -0800
committerGlenn Morris <rgm@gnu.org>2018-12-09 15:56:48 -0800
commit87bc518afcc3adc23762944ef49f89d375f90260 (patch)
tree07e0e07139b89c66331885f2e2c0bb067679f388 /test/lisp/eshell/eshell-tests.el
parentf8179cd366664484e849849027cdf6ecd55dbae9 (diff)
downloademacs-87bc518afcc3adc23762944ef49f89d375f90260.tar.gz
* test/lisp/eshell/eshell-tests.el (with-temp-eshell):
Avoid permanently changing HISTFILE.
Diffstat (limited to 'test/lisp/eshell/eshell-tests.el')
-rw-r--r--test/lisp/eshell/eshell-tests.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el
index cefbeef5677..330dd87ae4c 100644
--- a/test/lisp/eshell/eshell-tests.el
+++ b/test/lisp/eshell/eshell-tests.el
@@ -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