]> git.eshelyaron.com Git - emacs.git/commit
Let external Eshell processes send stdout and stderr to different places
authorJim Porter <jporterbugs@gmail.com>
Sun, 28 Aug 2022 18:53:07 +0000 (11:53 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sun, 4 Sep 2022 22:15:01 +0000 (15:15 -0700)
commitf07505d1ecf15ca9f6e6461e042092ceee96cc25
treed9dc814f1abd5f688f0a1b4c39b1028ecca44077
parenta87c7aff554213651678e9390dd7500b11419012
Let external Eshell processes send stdout and stderr to different places

* lisp/eshell/esh-proc.el (eshell-put-process-properties): Pass INDEX.
(eshell-gather-process-output): Create a pipe process for stderr when
stderr goes somewhere different than stdout.
(eshell-insertion-filter, eshell-sentinel): Consult
':eshell-handle-index' property.

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/output/stdout-to-buffer)
(esh-proc-test/output/stderr-to-buffer)
(esh-proc-test/exit-status/with-stderr-pipe): New tests (bug#21605).
lisp/eshell/esh-proc.el
test/lisp/eshell/esh-proc-tests.el