[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Grep-devel] grep-2.27 released [stable]
From: |
Vincent Lefevre |
Subject: |
Re: [Grep-devel] grep-2.27 released [stable] |
Date: |
Wed, 7 Dec 2016 16:30:02 +0100 |
User-agent: |
Mutt/1.7.1-6878-vl-r94147 (2016-11-29) |
On 2016-12-06 23:46:30 -0800, Jim Meyering wrote:
> grep by default now reads all of standard input if it is a pipe,
> even if this cannot affect grep's output or exit status. This works
> better with nonportable scripts that run "PROGRAM | grep PATTERN
> >/dev/null" where PROGRAM dies when writing into a broken pipe.
> [bug introduced in grep-2.26]
This seems a bad idea. Do this mean that
while true; do echo foo; done | grep . | head
will never terminate?
--
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)