]> git.eshelyaron.com Git - emacs.git/commit
Ensure that tailproc is set for the last process in an Eshell pipeline
authorJim Porter <jporterbugs@gmail.com>
Fri, 28 Jan 2022 07:13:36 +0000 (23:13 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Feb 2022 19:02:20 +0000 (20:02 +0100)
commit2e60ef696a3cf16b0eb297948e27ba0cb32a125e
treebec32b4c1c5b76e65272d22c4c1e49312e0aae79
parentdcc97fec29785051d7d11a66beb5f44fbaae6289
Ensure that tailproc is set for the last process in an Eshell pipeline

In particular, this used to fail for pipelines where the last process
in the pipeline came from the first element of the pipeline. This
could happen when a process was piped to an ordinary Lisp function,
like in '*echo hi | echo bye'.

* lisp/eshell/esh-cmd.el (eshell-do-pipelines): Set the tailproc even
for the first process in the pipeline.

* test/lisp/eshell/eshell-tests.el (eshell-test/pipe-tailproc): New
test.
lisp/eshell/esh-cmd.el
test/lisp/eshell/eshell-tests.el