From d95677ad608c214647b87bc20df1642763e3b400 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 16 Feb 2024 16:05:58 +0000 Subject: [PATCH] Quote printf command path if necessary (see #117) --- 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 60e7853..471ce94 100644 --- a/exec-path-from-shell.el +++ b/exec-path-from-shell.el @@ -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))