Skip to content

Commit 9f5ae71

Browse files
committed
* test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
Use `shell-quote-argument' instead of quoting 'like this'.
1 parent 1f76a16 commit 9f5ae71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/lisp/simple-tests.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,9 @@ See Bug#21722."
724724
(,output-buf (if ,output-buffer-is-current ,caller-buf
725725
(generate-new-buffer "output-buf")))
726726
(emacs (expand-file-name invocation-name invocation-directory))
727-
(,command (format "%s -Q --batch --eval '(princ %S)'"
728-
emacs ,str))
727+
(,command
728+
(format "%s -Q --batch --eval %s"
729+
emacs (shell-quote-argument (format "(princ %S)" ,str))))
729730
(inhibit-message t))
730731
(unwind-protect
731732
;; Feature must work the same regardless how we specify the 2nd arg of `shell-command', ie,

0 commit comments

Comments
 (0)