This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Spurious 'grep: writing output' in Cygwin 1.7.5-1 in certain cases


On Mon, Apr 19, 2010 at 05:37:55PM -0600, Eric Blake wrote:
>[adding bug-grep]
>
>On 04/19/2010 03:19 PM, Matthew Kidd wrote:
>> We are seeing grep emit 'grep: writing output' multiple times in
>> certain cases where the output of grep is piped to another program.
>> Specifically, we see it in the following cases:
>> 
>>   grep thisandthat foo.txt | head
>>   grep thisandthat foo.txt | less
>
>Expected, if you are blocking SIGPIPE, although it might be improved a
>bit.  Grep is telling you that it encountered a write failure due to
>EPIPE, and is thus about to exit with non-zero status.  Did you paste
>the full error message?  On Linux, I see:
>
>grep: writing output: Broken pipe

Apparently grep isn't seeing an actual EPIPE here for some reason.  I
will look into why that is the case.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]