Files
emacs/doc/misc
Jim Porter 6defbd65b6 Fix handling of output handles in nested Eshell forms
Previously, the output handles in nested forms would be reset to the
default, leading to wrong behavior for commands like

  {echo a; echo b} > file

"b" would be written to "file" as expected, but "a" would go to
standard output (bug#59545).

* lisp/eshell/esh-cmd.el (eshell-parse-command): Use
'eshell-with-copied-handles' for each statement within the whole
Eshell command.

* test/lisp/eshell/esh-io-tests.el (esh-io-test/redirect-subcommands)
(esh-io-test/redirect-subcommands/override)
(esh-io-test/redirect-subcommands/interpolated): New tests.

* test/lisp/eshell/em-script-tests.el
(em-script-test/source-script/redirect)
(em-script-test/source-script/redirect/dev-null): New tests.
(em-script-test/source-script, em-script-test/source-script/arg-vars)
(em-script-test/source-script/all-args-var): Tweak names/docstrings.

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-tests--deftest):
Skip over the newly-added 'eshell-with-copied-handles' form when
checking the parse results.

* test/lisp/eshell/em-tramp-tests.el (em-tramp-test/su-default)
(em-tramp-test/su-user, em-tramp-test/su-login)
(em-tramp-test/sudo-shell, em-tramp-test/sudo-user-shell)
(em-tramp-test/doas-shell, em-tramp-test/doas-user-shell): Update
expected command forms.
2022-12-22 11:35:12 -08:00
..
2022-09-19 19:30:03 +02:00
2022-11-22 02:24:20 +01:00
2022-11-18 16:02:19 +01:00
2022-11-20 12:59:39 +01:00
2022-11-22 02:24:20 +01:00
2022-11-22 02:24:20 +01:00
2022-11-11 15:52:37 +01:00
2022-11-22 02:24:20 +01:00
2022-11-17 09:34:24 +01:00
2022-12-09 10:18:00 +01:00
2022-08-23 06:30:36 +02:00
2022-11-22 02:24:20 +01:00
2022-11-22 02:24:20 +01:00
2022-11-22 02:24:20 +01:00
2022-10-15 13:06:45 +02:00
2022-11-29 23:05:53 -05:00
2022-12-17 17:28:27 -05:00
2022-12-16 08:02:17 +01:00
2022-11-18 16:02:19 +01:00
2022-11-18 13:06:55 +01:00
2022-10-15 13:06:45 +02:00
2022-11-20 12:59:39 +01:00
2022-11-29 17:00:02 +01:00
2022-11-29 17:00:02 +01:00
2022-11-18 16:02:19 +01:00
2022-09-08 23:35:04 +02:00