]> git.eshelyaron.com Git - emacs.git/commit
Fix using background commands in 'eshell-command'
authorJim Porter <jporterbugs@gmail.com>
Fri, 31 Mar 2023 02:31:30 +0000 (19:31 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sun, 2 Apr 2023 22:05:53 +0000 (15:05 -0700)
commit267fca267fe858d8a8f34d15de21051e3b6fff41
tree512626e1f9d8f979124b8735e51092058b0b9c30
parent6df2941c1b0d965afc40f8c50ce08e45e060d64c
Fix using background commands in 'eshell-command'

This regressed due to the patch for bug#53715, which changed how
Eshell pipelines return the processes in the pipeline (bug#62556).

* lisp/eshell/esh-cmd.el (eshell-parse-command): When creating
background commands, wrap the process(es) in a cons cell whose CAR is
':eshell-background'.  This lets us use fewer heuristics...
(eshell-eval-command): ... here.  Additionally, keep the result and
the incomplete delimiter separate.

* lisp/eshell/eshell.el (eshell-command): Check ':eshell-background'
and use a more-robust method for setting the output target.

* test/lisp/eshell/eshell-tests.el (eshell-test/eshell-command/simple)
(eshell-test/eshell-command/pipeline)
(eshell-test/eshell-command/background)
(eshell-test/eshell-command/background-pipeline): New tests.
lisp/eshell/esh-cmd.el
lisp/eshell/eshell.el
test/lisp/eshell/eshell-tests.el