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 148145ff45 014/114: Force use of -e w


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 148145ff45 014/114: Force use of -e with built-in echo, which is not default in bash
Date: Tue, 5 Sep 2023 03:59:57 -0400 (EDT)

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

    Force use of -e with built-in echo, which is not default in bash
---
 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 9dd66920cc..21e1c83a67 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -73,7 +73,7 @@ STR is inserted literally in a double-quoted argument to echo.
 Executes $SHELL as interactive login shell."
   (with-temp-buffer
     (call-process (getenv "SHELL") nil (current-buffer) nil
-                  "--login" "-i" "-c" (concat "echo \"__RESULT\\0" str "\""))
+                  "--login" "-i" "-c" (concat "echo -e \"__RESULT\\0" str 
"\""))
     (goto-char (point-min))
     (when (re-search-forward "__RESULT\0\\(.*\\)" nil t)
       (match-string 1))))



reply via email to

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