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 345ba9cb71 036/114: Don't fail when p


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 345ba9cb71 036/114: Don't fail when printing undefined vars if shell -e option is set
Date: Tue, 5 Sep 2023 03:59:58 -0400 (EDT)

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

    Don't fail when printing undefined vars if shell -e option is set
---
 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 36534dee0b..b8a368ea4a 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -137,7 +137,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* ((dollar-names (mapcar (lambda (n) (concat "$" n)) names))
+  (let* ((dollar-names (mapcar (lambda (n) (format "${%s-}" n)) names))
          (values (if (exec-path-from-shell--tcsh-p (getenv "SHELL"))
                      ;; Dumb shell
                      (mapcar (lambda (v)



reply via email to

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