Fix call-with-env-from-file
This commit is contained in:
parent
06a02883c8
commit
28c21c4995
@ -511,7 +511,6 @@ Load environment variables into Emacs from a shell script:
|
|||||||
(let ((var-re "\\(.+?\\)=\\(.+\\)$")
|
(let ((var-re "\\(.+?\\)=\\(.+\\)$")
|
||||||
(env '()))
|
(env '()))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(cd (file-name-directory file))
|
|
||||||
(shell-command (concat "source " file " > /dev/null && env")
|
(shell-command (concat "source " file " > /dev/null && env")
|
||||||
(current-buffer))
|
(current-buffer))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
|
Loading…
Reference in New Issue
Block a user