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 4c328130ec 049/114: Remove unnecessar


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 4c328130ec 049/114: Remove unnecessary dash to appease old csh
Date: Tue, 5 Sep 2023 03:59:59 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit 4c328130ec768ed362a729c5ddf09f1e75bd16c4
Author: Richard Kim <emacs18@gmail.com>
Commit: Richard Kim <emacs18@gmail.com>

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



reply via email to

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