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