From: Jim Porter <jporterbugs@gmail.com>
To: 55590@debbugs.gnu.org
Subject: bug#55590: 29.0.50; Eshell subcommands clobber pipelines and produce incorrect output
Date: Sun, 22 May 2022 20:34:57 -0700 [thread overview]
Message-ID: <6cc569a4-3512-d546-3f39-76f3d61436ac@gmail.com> (raw)
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.
next reply other threads:[~2022-05-23 3:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-23 3:34 Jim Porter [this message]
2022-05-23 3:43 ` bug#55590: [PATCH] 29.0.50; Eshell subcommands clobber pipelines and produce incorrect output 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6cc569a4-3512-d546-3f39-76f3d61436ac@gmail.com \
--to=jporterbugs@gmail.com \
--cc=55590@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).