]> git.eshelyaron.com Git - emacs.git/commit
Ensure that the CAR of 'eshell-last-async-procs' always points to a process
authorJim Porter <jporterbugs@gmail.com>
Sat, 5 Feb 2022 06:41:39 +0000 (22:41 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Feb 2022 06:58:59 +0000 (07:58 +0100)
commit785a045b868e0aeef08858e86a9efe48311e8f48
tree2b87eab3110904dad4c8f6d139d1d5084bdfabd7
parenta8de2e20e093bb45231327e824ceb8421993634e
Ensure that the CAR of 'eshell-last-async-procs' always points to a process

Previously, if a non-process was piped to a process, this could end up
being nil, which isn't correct.  'eshell-last-async-procs' should just
ignore non-process commands in a pipeline.

* lisp/eshell/esh-cmd.el (eshell-do-pipelines): Set 'headproc'
correctly.

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