branch: elpa/exec-path-from-shell
commit 30c793b388312e5044afb7549b50996bf2b71941
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>
Preserve "" env var values: don't map them to nil
See #31
---
exec-path-from-shell.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index 4114aedebe..1847c678c8 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -149,7 +149,7 @@ shell-escaped, so they may contain $ etc."
Execute $SHELL according to `exec-path-from-shell-arguments'.
The result is a list of (NAME . VALUE) pairs."
(let* ((random-default (md5 (format "%s%s%s" (emacs-pid) (random)
(current-time))))
- (dollar-names (mapcar (lambda (n) (format "${%s:-%s}" n
random-default)) names))
+ (dollar-names (mapcar (lambda (n) (format "${%s-%s}" n
random-default)) names))
(values (split-string (exec-path-from-shell-printf
(mapconcat #'identity (make-list (length
names) "%s") "\\000")
dollar-names) "\0")))