diff options
| author | Sean Whitton | 2022-01-26 14:13:00 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-01-26 14:16:40 +0100 |
| commit | afd1fdf6bb85600e6d7fafcdbff367c0f964a576 (patch) | |
| tree | 2a00071aeea36c0c95e996d70e4a9b168cbf1a67 /test | |
| parent | fc8875be071a2a7f32ce6ffc9d3d3511cab5f73b (diff) | |
| download | emacs-afd1fdf6bb85600e6d7fafcdbff367c0f964a576.tar.gz emacs-afd1fdf6bb85600e6d7fafcdbff367c0f964a576.zip | |
Fix input of sharp-quoted symbols in Eshell with em-extpipe
* lisp/eshell/em-extpipe.el (eshell-parse-external-pipeline): Fix
misinterpreting sharp-quoted symbols as the beginning of single-quoted
strings (Bug#53518). Add protection against a possible infinite loop.
* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-17): New
test (bug#53518).
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/eshell/em-extpipe-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/eshell/em-extpipe-tests.el b/test/lisp/eshell/em-extpipe-tests.el index 1283b6b361f..0879ad5b0ca 100644 --- a/test/lisp/eshell/em-extpipe-tests.el +++ b/test/lisp/eshell/em-extpipe-tests.el | |||
| @@ -202,4 +202,8 @@ | |||
| 202 | (eshell-command-result-p input "rab") | 202 | (eshell-command-result-p input "rab") |
| 203 | (eshell-command-result-p "echo \"bar\" | rev" "nonsense")))) | 203 | (eshell-command-result-p "echo \"bar\" | rev" "nonsense")))) |
| 204 | 204 | ||
| 205 | ;; Confirm we don't break input of sharp-quoted symbols (Bug#53518). | ||
| 206 | (em-extpipe-tests--deftest em-extpipe-test-17 "funcall #'upcase foo" | ||
| 207 | (eshell-command-result-p input "FOO")) | ||
| 208 | |||
| 205 | ;;; em-extpipe-tests.el ends here | 209 | ;;; em-extpipe-tests.el ends here |