Package: grep / 2.27-2

upstream-clarify-early-exit-news-for-2.27.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 136a8987b003c2cee4c2419e2bf870ff0836f8f9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 7 Dec 2016 12:17:55 -0800
Subject: [PATCH] maint: clarify early-exit news for 2.27

* NEWS: Mention early-exit options to avoid confusion.  See:
http://lists.gnu.org/archive/html/grep-devel/2016-12/msg00007.html
---
 NEWS | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 302db5fe..f33001d0 100644
--- a/NEWS
+++ b/NEWS
@@ -13,7 +13,8 @@ GNU grep NEWS                                    -*- outline -*-
   final byte of which is the digit "7".
   [bug introduced in grep-2.19]
 
-  grep by default now reads all of standard input if it is a pipe,
+  Unless an early-exit option like -q, -l, -L, -m, or -f /dev/null is
+  specified, grep now reads all of a non-seekable standard input,
   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.
-- 
2.11.0