1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-06 23:51:24 -08:00
emacs/test/lisp/eshell
Jim Porter a37df90276 Treat escaped newlines in Eshell as the empty string
This fixes a regression introduced during Emacs 29's development.

* lisp/eshell/esh-arg.el (eshell-parse-argument): Handle
'eshell-empty-token' as the result of an argument-parsing hook.
(eshell-parse-argument-hook): Document 'eshell-empty-token'.
(eshell-parse-backslash): Return 'eshell-empty-token' when
encountering an escaped newline.

* test/lisp/eshell/eshell-tests.el (eshell-test/escape-nonspecial)
(eshell-test/escape-nonspecial-unicode)
(eshell-test/escape-nonspecial-quoted)
(eshell-test/escape-special-quoted): Move from here...

* test/lisp/eshell/esh-arg-tests.el (esh-arg-test/escape/nonspecial)
(esh-arg-test/escape/nonspecial-unicode)
(esh-arg-test/escape-quoted/nonspecial)
(esh-arg-test/escape-quoted/special): ... to here.
(esh-arg-test/escape/special, esh-arg-test/escape/newline)
(esh-arg-test/escape-quoted/newline): New tests.

* doc/misc/eshell.texi (Arguments): Explain escaping logic in more
detail (bug#59622).
2022-12-07 21:39:07 -08:00
..
em-alias-tests.el
em-basic-tests.el
em-dirs-tests.el
em-extpipe-tests.el
em-glob-tests.el
em-hist-tests.el
em-ls-tests.el
em-pred-tests.el
em-script-tests.el
em-tramp-tests.el Add the "doas" alias to eshell. 2022-11-05 12:05:05 -07:00
esh-arg-tests.el Treat escaped newlines in Eshell as the empty string 2022-12-07 21:39:07 -08:00
esh-cmd-tests.el
esh-ext-tests.el
esh-io-tests.el
esh-opt-tests.el
esh-proc-tests.el
esh-util-tests.el Only strip newlines when stringifying a value for Eshell 2022-11-03 11:44:41 -07:00
esh-var-tests.el ; * test/lisp/eshell/esh-var-tests.el: Fix incorrect paren placement. 2022-11-25 17:45:06 -08:00
eshell-tests-helpers.el
eshell-tests.el Treat escaped newlines in Eshell as the empty string 2022-12-07 21:39:07 -08:00