emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/exec-path-from-shell 30c793b388 054/114: Preserve "" env v


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 30c793b388 054/114: Preserve "" env var values: don't map them to nil
Date: Tue, 5 Sep 2023 04:00:00 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit 30c793b388312e5044afb7549b50996bf2b71941
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]