Skip to content

Commit

Permalink
Quote printf command path if necessary (see #117)
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Feb 16, 2024
1 parent 6c10a9d commit d95677a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec-path-from-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ in place of any % placeholders in STR. ARGS are not automatically
shell-escaped, so they may contain $ etc."
(let* ((printf-bin (or (executable-find "printf") "printf"))
(printf-command
(concat printf-bin
(concat (shell-quote-argument printf-bin)
" '__RESULT\\000" str "\\000__RESULT' "
(mapconcat #'exec-path-from-shell--double-quote args " ")))
(shell (exec-path-from-shell--shell))
Expand Down

0 comments on commit d95677a

Please sign in to comment.