Skip to content

Commit 2b66512

Browse files
committed
Unambigiously escape the null character (fixes purcell#5)
1 parent de589a9 commit 2b66512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec-path-from-shell.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ and may therefore contain backslashed escape sequences, but must not
7676
contain the '%' character."
7777
(with-temp-buffer
7878
(call-process (getenv "SHELL") nil (current-buffer) nil
79-
"--login" "-i" "-c" (concat "printf \"__RESULT\\0" str "\""))
79+
"--login" "-i" "-c" (concat "printf \"__RESULT\\000" str "\""))
8080
(goto-char (point-min))
8181
(when (re-search-forward "__RESULT\0\\(.*\\)" nil t)
8282
(match-string 1))))

0 commit comments

Comments
 (0)