1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-11 09:21:23 -07:00
emacs/test/lisp/eshell
Jim Porter 673c906a5b Improve evaluation of conditional Eshell forms
This simplifies the logic for building these forms and also fixes an
issue where a subcommand in a "&&" or "||" conditional had its output
suppressed.

* lisp/eshell/esh-cmd.el (eshell-structure-basic-command): Make
obsolete.
(eshell-silence-test-command): New function...
(eshell-rewrite-while-command, eshell-rewrite-if-command): ... use it,
and make the command form ourselves.
(eshell-parse-pipeline): Use 'and' and 'or' to make the conditional
command sequence.
(eshell-command-success): New macro.
(eshell-do-eval): Add support for 'and' and 'or' forms.

* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/and-operator/output)
(esh-cmd-test/or-operator/output): New tests.
2024-11-01 11:41:21 -07:00
..
em-alias-tests.el
em-basic-tests.el
em-cmpl-tests.el
em-dirs-tests.el
em-extpipe-tests.el Improve handling of deferrable Eshell commands 2024-07-18 11:10:04 -07:00
em-glob-tests.el Improve correctness of Eshell globs when using escape characters 2024-10-31 22:38:10 -07:00
em-hist-tests.el Erase existing duplicates in eshell-history-ring 2024-05-24 19:29:20 -07:00
em-ls-tests.el
em-pred-tests.el
em-prompt-tests.el Ensure navigating by paragraphs in Eshell stops at prompts and paragraphs 2024-06-20 19:01:20 -07:00
em-script-tests.el Fix redirecting Eshell output to symbols in some places 2024-08-29 21:51:25 -07:00
em-tramp-tests.el Use 'unwind-protect' to ensure that Eshell always closes I/O handles 2024-07-27 13:57:17 -07:00
em-unix-tests.el Improve correctness of 'eshell-quote-argument' 2024-06-09 15:28:40 -07:00
esh-arg-tests.el Improve correctness of Eshell sub-forms 2024-10-16 21:48:35 -07:00
esh-cmd-tests.el Improve evaluation of conditional Eshell forms 2024-11-01 11:41:21 -07:00
esh-ext-tests.el
esh-io-tests.el Fix redirecting Eshell output to symbols in some places 2024-08-29 21:51:25 -07:00
esh-mode-tests.el Fix and improve behavior of 'eshell/clear' 2024-10-31 22:36:16 -07:00
esh-opt-tests.el
esh-proc-tests.el Don't set exit info in Eshell if the command is being piped elsewhere 2024-07-19 11:22:34 -07:00
esh-util-tests.el ; Ensure 'eshell-split-filename' doesn't expand the filename first 2024-10-26 14:24:39 -07:00
esh-var-tests.el Be more careful about applying spliced arguments 2024-10-20 18:03:45 -07:00
eshell-tests-helpers.el Fix redirecting Eshell output to symbols in some places 2024-08-29 21:51:25 -07:00
eshell-tests-unload.el Consolidate Eshell module loading/unloading code 2024-05-29 12:09:05 -07:00
eshell-tests.el Support "/dev/null" as a target when creating Eshell handles 2024-08-28 19:14:30 -07:00