1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
emacs/lisp/eshell
Jim Porter 4450c8bdd9 Consider subcommands when deciding to invoke Eshell command directly
When an Eshell command contains an asynchronous subcommand (such as
calling an external process), it must be evaluated iteratively.  See
bug#30725.

* lisp/eshell/esh-cmd.el (eshell-invoke-command): Move most of the
logic from here...
(eshell--invoke-command-directly): ... to here. Also add checks for
subcommands.

* test/lisp/eshell/eshell-tests.el (eshell-test--max-subprocess-time):
New variable.
(eshell-wait-for-subprocess): New function.
(eshell-command-result-p): Use 'eshell-wait-for-subprocess'.
(eshell-test/interp-cmd-external): New test (bug#30725).
2022-01-20 14:37:54 +01:00
..
em-alias.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-banner.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-basic.el In Eshell, allow "-n" to suppress the trailing newline for "plain" echo 2022-01-20 11:04:43 +01:00
em-cmpl.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-dirs.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-glob.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-hist.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-ls.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-pred.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-prompt.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-rebind.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-script.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-smart.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-term.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-tramp.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-unix.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-xtra.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-arg.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-cmd.el Consider subcommands when deciding to invoke Eshell command directly 2022-01-20 14:37:54 +01:00
esh-ext.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-io.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-mode.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-module.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-opt.el Follow POSIX/GNU argument conventions for 'eshell-eval-using-options' 2022-01-12 16:58:37 +02:00
esh-proc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-util.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-var.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eshell.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00