Subject: Re: bug#30134: ehsell and process-environment variable

From: Noam Postavsky <[email-masked]>
Date: Thu, 18 Jan 2018 12:52:40 -0500

On Thu, Jan 18, 2018 at 1:11 AM, SK Kim <[email-masked]> wrote:

> I still don't know why but process-environment lost some values when
> creating new buffer with 'get-buffer-create' function.

Probably because it's made into a buffer-local variable in eshell buffers:

(defun eshell-var-initialize ()
  "Initialize the variable handle code."
  ;; Break the association with our parent's environment.  Otherwise,
  ;; changing a variable will affect all of Emacs.
  (unless eshell-modify-global-environment
    (set (make-local-variable 'process-environment)
     (eshell-copy-environment)))
  [...]