diff options
| author | Michael Albinus | 2020-04-27 10:36:33 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-04-27 10:36:33 +0200 |
| commit | 9f5ae717fba13de3d670eea9572be0866a313a50 (patch) | |
| tree | 6761e8b6c22fc8c9a2e829aefa5aa713c686f500 /test | |
| parent | 1f76a16ed349b9556ab711fc12ffb876c8488596 (diff) | |
| download | emacs-9f5ae717fba13de3d670eea9572be0866a313a50.tar.gz emacs-9f5ae717fba13de3d670eea9572be0866a313a50.zip | |
* test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
Use `shell-quote-argument' instead of quoting 'like this'.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/simple-tests.el | 5 |
1 files changed, 3 insertions, 2 deletions
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." | |||
| 724 | (,output-buf (if ,output-buffer-is-current ,caller-buf | 724 | (,output-buf (if ,output-buffer-is-current ,caller-buf |
| 725 | (generate-new-buffer "output-buf"))) | 725 | (generate-new-buffer "output-buf"))) |
| 726 | (emacs (expand-file-name invocation-name invocation-directory)) | 726 | (emacs (expand-file-name invocation-name invocation-directory)) |
| 727 | (,command (format "%s -Q --batch --eval '(princ %S)'" | 727 | (,command |
| 728 | emacs ,str)) | 728 | (format "%s -Q --batch --eval %s" |
| 729 | emacs (shell-quote-argument (format "(princ %S)" ,str)))) | ||
| 729 | (inhibit-message t)) | 730 | (inhibit-message t)) |
| 730 | (unwind-protect | 731 | (unwind-protect |
| 731 | ;; Feature must work the same regardless how we specify the 2nd arg of `shell-command', ie, | 732 | ;; Feature must work the same regardless how we specify the 2nd arg of `shell-command', ie, |