From e009771e2e2622035b20880806a98bf10ed49e1c Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 26 Feb 1994 02:24:51 +0000 Subject: [PATCH] (comint-exec-1): Force a local copy of the environment. --- lisp/comint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index b24763810f5..0bb6116c31a 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -574,7 +574,7 @@ buffer. The hook `comint-exec-hook' is run after each exec." ;;; the appropriate environment. (defun comint-exec-1 (name buffer command switches) - (let ((process-environment process-environment)) + (let ((process-environment (copy-sequence process-environment))) (setenv "TERMCAP" (format "emacs:co#%d:tc=unknown" (frame-width))) (setenv "TERM" "emacs") (setenv "EMACS" "t") -- 2.39.5