1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -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 Provide ERT explainer for 'eshell-match-command-output' 2022-08-15 20:40:27 -07:00
em-basic-tests.el Add 'eshell-command-result-equal' with an ERT explainer 2022-08-15 20:40:27 -07:00
em-dirs-tests.el Add 'eshell-command-result-equal' with an ERT explainer 2022-08-15 20:40:27 -07:00
em-extpipe-tests.el Provide ERT explainer for 'eshell-match-command-output' 2022-08-15 20:40:27 -07:00
em-glob-tests.el Make Eshell globs ending in "/" match directories only 2022-06-26 16:52:38 +02:00
em-hist-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-ls-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-pred-tests.el ; Improve time-convert call in recently changed test 2022-08-07 13:16:53 +02:00
em-script-tests.el Provide ERT explainer for 'eshell-match-command-output' 2022-08-15 20:40:27 -07:00
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 Simplify Eshell handle functions and add tests/documentation 2022-09-04 15:15:01 -07:00
esh-ext-tests.el Improve handling of $PATH in Eshell for remote directories 2022-10-17 18:48:52 -07:00
esh-io-tests.el Add support for more kinds of redirect operators in Eshell 2022-09-04 15:15:01 -07:00
esh-opt-tests.el Treat "-" as a positional arg in 'eshell-eval-using-options' 2022-01-25 13:28:48 +01:00
esh-proc-tests.el ; Fix a race condition in an Eshell test 2022-09-08 15:13:17 -07:00
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 Improve handling of $PATH in Eshell for remote directories 2022-10-17 18:48:52 -07:00
eshell-tests.el Treat escaped newlines in Eshell as the empty string 2022-12-07 21:39:07 -08:00