unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55590: 29.0.50; Eshell subcommands clobber pipelines and produce incorrect output
@ 2022-05-23  3:34 Jim Porter
  2022-05-23  3:43 ` bug#55590: [PATCH] " Jim Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Porter @ 2022-05-23  3:34 UTC (permalink / raw)
  To: 55590

Starting from `emacs -Q -f eshell', enter the following command:

   echo ${*echo hi} | rev

The output is:

   ~ $ ih

That is, the output of the command ended up *after* the prompt, when it 
should be before. This usually happens in cases where Eshell thinks all 
the subprocesses in a command have finished, but there's actually one 
still running. In this case, it's because the ${SUBCOMMAND} clobbers the 
headproc/tailproc values being recorded for the (outer) pipeline. Both 
the top-level command and the subcommand call `eshell-execute-pipeline', 
and the function isn't properly reentrant.

Patch forthcoming momentarily. I'm just getting a bug number first.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-25  2:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  3:34 bug#55590: 29.0.50; Eshell subcommands clobber pipelines and produce incorrect output Jim Porter
2022-05-23  3:43 ` bug#55590: [PATCH] " Jim Porter
2022-05-23  5:39   ` Sean Whitton
2022-05-23 15:41     ` bug#55590: [PATCH v2] " Jim Porter
2022-05-24 12:58       ` bug#55590: " Lars Ingebrigtsen
2022-05-25  2:27         ` Jim Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).