aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/eshell
diff options
context:
space:
mode:
authorSean Whitton2022-01-26 14:13:00 +0100
committerLars Ingebrigtsen2022-01-26 14:16:40 +0100
commitafd1fdf6bb85600e6d7fafcdbff367c0f964a576 (patch)
tree2a00071aeea36c0c95e996d70e4a9b168cbf1a67 /test/lisp/eshell
parentfc8875be071a2a7f32ce6ffc9d3d3511cab5f73b (diff)
downloademacs-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/lisp/eshell')
-rw-r--r--test/lisp/eshell/em-extpipe-tests.el4
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