From: Michael Albinus Date: Mon, 27 Apr 2020 08:36:33 +0000 (+0200) Subject: * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): X-Git-Tag: emacs-27.1-rc1~177 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f5ae717fb;p=emacs.git * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Use `shell-quote-argument' instead of quoting 'like this'. --- diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el index b23b0804575..03f7260f551 100644 --- a/test/lisp/simple-tests.el +++ b/test/lisp/simple-tests.el @@ -724,8 +724,9 @@ See Bug#21722." (,output-buf (if ,output-buffer-is-current ,caller-buf (generate-new-buffer "output-buf"))) (emacs (expand-file-name invocation-name invocation-directory)) - (,command (format "%s -Q --batch --eval '(princ %S)'" - emacs ,str)) + (,command + (format "%s -Q --batch --eval %s" + emacs (shell-quote-argument (format "(princ %S)" ,str)))) (inhibit-message t)) (unwind-protect ;; Feature must work the same regardless how we specify the 2nd arg of `shell-command', ie,