branch: elpa/exec-path-from-shell
commit 4c328130ec768ed362a729c5ddf09f1e75bd16c4
Author: Richard Kim <[email protected]>
Commit: Richard Kim <[email protected]>
Remove unnecessary dash to appease old csh
/bin/csh on Red Hat 5 that I use is a symlink to tcsh version 6.14 built
over 10 years ago.
This csh fails due to presence of the dash.
Removing the dash resolved the problem for me.
I don't know what the purpose of the dash was in the first place.
If it was an optional character, then I would suggest that you remove this
to allow older shells to work.
---
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 56d381668b..98be4835d3 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -154,7 +154,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) (format "${%s-}" n)) names))
+ (let* ((dollar-names (mapcar (lambda (n) (format "${%s}" n)) names))
(values (split-string (exec-path-from-shell-printf
(mapconcat #'identity (make-list (length
names) "%s") "\\000")
dollar-names) "\0")))