]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of '\\' inside double-quotes in Eshell
authorJim Porter <jporterbugs@gmail.com>
Sun, 27 Mar 2022 19:09:58 +0000 (12:09 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 3 Apr 2022 12:16:44 +0000 (14:16 +0200)
commitc12a48c3350bb5aa2cbefda10c5364c778463366
tree23f553a42ecb9c2efb840235bbb9cd998c109cd1
parent9f521db6fec6c6dbdfeb1145f4dbb603c0240299
Fix handling of '\\' inside double-quotes in Eshell

Previously, Eshell would get confused and think the following command
was unterminated due to the second double-quote looking like it was
escaped:

  echo "\\"

* lisp/eshell/esh-util.el (eshell-find-delimiter): Correct docstring
and treat '\' as an escapeable character when using backslash escapes.

* test/lisp/eshell/eshell-tests.el
(eshell-test/escape-special-quoted): Adapt test.
lisp/eshell/esh-util.el
test/lisp/eshell/eshell-tests.el