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:
Daniel Nicolai 2021-07-18 07:51:16 +02:00 committed by duianto
parent 81eb82603c
commit c5248ac465
1 changed files with 2 additions and 1 deletions

View File

@ -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)))