fix issue #14919 (force-init-spacemacs-env fails)
Currently when running the env shell-command, emacs does so using its current process-environment. Instead we should run the command with the `initial-environment`, which fixes issue #14919.
This commit is contained in:
parent
81eb82603c
commit
c5248ac465
|
@ -98,7 +98,8 @@ current contents of the file will be overwritten."
|
|||
"\n"
|
||||
"# Environment variables:\n"
|
||||
"# ----------------------\n"))
|
||||
(let ((env-point (point)))
|
||||
(let ((process-environment initial-environment)
|
||||
(env-point (point)))
|
||||
(dolist (shell-command-switch shell-command-switches)
|
||||
(call-process-shell-command
|
||||
(concat executable " > " (shell-quote-argument tmpfile)))
|
||||
|
|
Loading…
Reference in New Issue