1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-27 15:40:47 -08:00
emacs/lisp/eshell
Jim Porter b7893e7387 Don't set exit info in Eshell if the command is being piped elsewhere
Previously, the exit info in Eshell was that of the last command that
finished, rather than the last command in a pipeline.

* lisp/eshell/esh-cmd.el (eshell-exec-lisp)
(eshell-lisp-command): Check whether the command is being piped.

* lisp/eshell/esh-proc.el (eshell-gather-process-output): Record whether
the command is being piped...
(eshell-sentinel): ... and do the right thing with that info.

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/sigpipe-exits-process): Check the exit status to ensure
we don't report the first process's SIGPIPE exit.
2024-07-19 11:22:34 -07:00
..
em-alias.el Split out exit code parts of 'eshell-close-handles' into a new function 2024-07-19 11:22:34 -07:00
em-banner.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-basic.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-cmpl.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-dirs.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-elecslash.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-extpipe.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-glob.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-hist.el Don't save to history from 'eshell-command' when aborting 2024-07-15 09:10:30 -07:00
em-ls.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-pred.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-prompt.el Ensure navigating by paragraphs in Eshell stops at prompts and paragraphs 2024-06-20 19:01:20 -07:00
em-rebind.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-script.el Allow specifying stdout/stderr separately in some Eshell commands 2024-07-18 15:00:41 -07:00
em-smart.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-term.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-tramp.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-unix.el Improve correctness of 'eshell-quote-argument' 2024-06-09 15:28:40 -07:00
em-xtra.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
esh-arg.el Improve correctness of 'eshell-quote-argument' 2024-06-09 15:28:40 -07:00
esh-cmd.el Don't set exit info in Eshell if the command is being piped elsewhere 2024-07-19 11:22:34 -07:00
esh-ext.el Fix execution of MS-Windows app execution aliases in Eshell 2024-07-07 20:25:09 -07:00
esh-io.el Split out exit code parts of 'eshell-close-handles' into a new function 2024-07-19 11:22:34 -07:00
esh-mode.el Limit the amount of text we examine when looking for password prompts 2024-06-20 17:37:19 -07:00
esh-module.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
esh-opt.el
esh-proc.el Don't set exit info in Eshell if the command is being piped elsewhere 2024-07-19 11:22:34 -07:00
esh-util.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
esh-var.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
eshell.el Allow specifying stdout/stderr separately in some Eshell commands 2024-07-18 15:00:41 -07:00