branch: elpa/exec-path-from-shell
commit 345ba9cb71a232c7cad4ab416641a4d5b12d30ca
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>
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)