GNU bug report logs - #79079
31.0.50; Piped command output is sometimes lost in Eshell

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Wed, 23 Jul 2025 09:57:01 UTC

Severity: normal

Found in version 31.0.50

Full log


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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: mail <at> daniel-mendler.de, eggert <at> cs.ucla.edu, 79079 <at> debbugs.gnu.org
Subject: Re: bug#79079: 31.0.50; Piped command output is sometimes lost in
 Eshell
Date: Sat, 16 Aug 2025 16:54:57 -0700
[Message part 1 (text/plain, inline)]
On 8/16/2025 12:21 PM, Eli Zaretskii wrote:
>> Date: Sat, 16 Aug 2025 10:19:21 -0700
>> Cc: mail <at> daniel-mendler.de, eggert <at> cs.ucla.edu, 79079 <at> debbugs.gnu.org
>> From: Jim Porter <jporterbugs <at> gmail.com>
>>
>> It doesn't look like Emacs has the ability to close a file descriptor
>> from Lisp. I could add a C function to do this from Lisp, but I don't
>> know if it would be useful outside of this one test.
> 
> There's nothing wrong in having a function for the benefit of running
> tests.  If suitably documented, it's okay, I think.

Ok, now done. I've added a new function called 'internal-close-stream'. 
Hopefully the documentation is clear enough (it's a pretty simple function).

>> The tests aren't especially useful on Windows, but they should pass
>> (assuming the pipe test does), since on Windows we always use a pipe,
>> even if the user requests a PTY.
> 
> What would be the purpose of running the same tests several times?

Just one fewer conditional in the tests, but that's not a big deal. I've 
change this to run only the "pipe" case under MS-Windows.
[0001-Allow-child-processes-to-continue-after-EPIPE.patch (text/plain, attachment)]

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.