grep-devel
[Top][All Lists]
Advanced

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

Re: [Grep-devel] grep-2.27 released [stable]


From: Paul Eggert
Subject: Re: [Grep-devel] grep-2.27 released [stable]
Date: Wed, 7 Dec 2016 08:48:19 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Vincent Lefevre wrote:
Do this mean that

  while true; do echo foo; done | grep . | head

will never terminate?

No, because 'grep' will killed by SIGPIPE, or (if the caller ignores SIGPIPE) will report a write error and exit. If the caller ignores SIGPIPE the 'while' loop will run indefinitely, but that won't be grep's fault.

The brief summary in the NEWS file didn't capture this detail.



reply via email to

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