GNU bug report logs - #55590
29.0.50; Eshell subcommands clobber pipelines and produce incorrect output

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Mon, 23 May 2022 03:36:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Eshell subcommands clobber pipelines and produce incorrect
 output
Date: Sun, 22 May 2022 20:34:57 -0700
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.




This bug report was last modified 3 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.