Skip to content

Commit d95677a

Browse files
committed
Quote printf command path if necessary (see #117)
1 parent 6c10a9d commit d95677a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec-path-from-shell.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ in place of any % placeholders in STR. ARGS are not automatically
166166
shell-escaped, so they may contain $ etc."
167167
(let* ((printf-bin (or (executable-find "printf") "printf"))
168168
(printf-command
169-
(concat printf-bin
169+
(concat (shell-quote-argument printf-bin)
170170
" '__RESULT\\000" str "\\000__RESULT' "
171171
(mapconcat #'exec-path-from-shell--double-quote args " ")))
172172
(shell (exec-path-from-shell--shell))

0 commit comments

Comments
 (0)