* lisp/eshell: Make backslash a no-op in front of normal chars
commitc44f5b046b3f8e9a742c583880ae3a3f78828944
authorSamer Masterson <samer@samertm.com>
Thu, 9 Apr 2015 02:31:51 +0000 (8 22:31 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Apr 2015 02:31:51 +0000 (8 22:31 -0400)
tree6f3f09ef706933b30fd212512d86a66f8527151d
parent3d78c5578c435c7eb231ff2212aaf85a1b3ed0e5
* lisp/eshell: Make backslash a no-op in front of normal chars

Fixes: debbugs:8531

* lisp/eshell/esh-arg.el (eshell-parse-argument-hook): Update comment.
(eshell-parse-backslash): Return escaped character after backslash
if it is special.  Otherwise, if the backslash is not in a quoted
string, ignore the backslash and return the character after; if
the backslash is in a quoted string, return the backslash and the
character after.

* test/automated/eshell.el (eshell-test/escape-nonspecial)
(eshell-test/escape-nonspecial-unicode)
(eshell-test/escape-nonspecial-quoted)
(eshell-test/escape-special-quoted): Add tests for new
`eshell-parse-backslash' behavior.
lisp/eshell/esh-arg.el
test/automated/eshell.el