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


View this message in rfc822 format

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: bug#79079: 31.0.50; Piped command output is sometimes lost in Eshell
Date: Sat, 16 Aug 2025 23:33:49 -0700
[Message part 1 (text/plain, inline)]
On 8/16/2025 10:03 PM, Eli Zaretskii wrote:
> Calls to CHECK_* should be made by the primitive itself, not by its
> subroutine.  This is to allow the subroutines to be called where such
> tests were already done, or are inappropriate.  The idea is that only
> stuff exposed to Lisp validates the Lisp objects passed as arguments.

Good to know, thanks.

> P.S. I'd like to see what this does on Windows, where there's neither
> SIGPIPE nor EPIPE, but that's a separate funeral.

For what it's worth, Gnulib says the following:

/* On native Windows platforms, SIGPIPE does not exist.  When write() is
   called on a pipe with no readers, WriteFile() fails with error
   GetLastError() = ERROR_NO_DATA, and write() in consequence fails with
   error EINVAL.  */

Gnulib's 'write' (well really, 'rpl_write') checks for ERROR_NO_DATA and 
raises SIGPIPE for us, so hopefully we're ok here?
[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.