GNU bug report logs -
#79079
31.0.50; Piped command output is sometimes lost in Eshell
Previous Next
Full log
View this message in rfc822 format
> Date: Sat, 26 Jul 2025 10:23:48 -0700
> Cc: mail <at> daniel-mendler.de, eggert <at> cs.ucla.edu, 79079 <at> debbugs.gnu.org
> From: Jim Porter <jporterbugs <at> gmail.com>
>
> On 7/26/2025 3:15 AM, Eli Zaretskii wrote:
> >> Date: Thu, 24 Jul 2025 08:52:16 -0700
> >> Cc: mail <at> daniel-mendler.de, 79079 <at> debbugs.gnu.org
> >> From: Jim Porter <jporterbugs <at> gmail.com>
> >>
> > So calling the filter of the "head"s process when we get EPIPE should
> > fix that, no?
>
> It would probably fix this particular case, but I'm not sure it's the
> correct way to do it in general. I'll construct some test programs to
> test out some of the corner cases here so that we can be sure whatever
> implementation we do settle on works correctly in all cases.
We should try doing what a Posix shell does in that case. A program
that gets EPIPE generally exits with a failure status (right?),
anything that happens after that is done by the shell itself.
This bug report was last modified 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.