bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip -q && SIGPIPE


From: Paul Eggert
Subject: Re: gzip -q && SIGPIPE
Date: Sun, 30 Oct 2005 15:17:11 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Joshua Kronengold <address@hidden> writes:

> It's arguable that the cat behavior is bad and wrong as well, really -- 

Perhaps, but the current 'cat' behavior is required by POSIX and has
been in place for decades, so I doubt whether people would want to
change it now.

> Why should IGNORE + "ignore" = complain?

When you ignore SIGPIPE, you're not asking to ignore pipe errors;
you're asking to be notified of them in a different way (via write
failure that acts like an I/O error, rather than via a signal).

 gzip -q does not ignore all errors, just "unimportant" ones.  It is a
judgment call whether errno==EPIPE is an "unimportant" error.  I tend
to agree with you that it might be better to ignore such errors with
-q, but it's not exactly a bug in the current system, more an infelicity.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]