diff options
author | Jim Meyering <meyering@fb.com> | 2014-05-30 09:19:33 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-05-30 14:01:09 -0700 |
commit | ecf3677de8175689eaad770a8bc849f69576a481 (patch) | |
tree | 9bef7ef9d558ef925b3167c01c228d0c270836f0 /THANKS | |
parent | 96bd3104b76fb157555b60d22eeb71782572ceb0 (diff) | |
download | grep-ecf3677de8175689eaad770a8bc849f69576a481.tar.gz |
grep: fix --max-count=N (-m N) to stop reading after Nth match
With --max-count=N (-m N), grep is supposed to stop reading input
after it has found the Nth match. However, a recent context-
related change made it so grep would always read to end of file.
* src/grep.c (prtext): Don't let a negative "out_after" value
make "pending" line count negative.
* tests/max-count-overread: New test, for this.
* tests/Makefile.am (TESTS): Add it.
* NEWS (Bug fixes): Mention it.
* THANKS: Add names of two recent bug reporters.
This bug was introduced by commit v2.18-139-g5122195.
Reported by Marc Aldorasi in http://bugs.gnu.org/17640.
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -61,6 +61,7 @@ Keith Bostic <bostic@bsdi.com> Krishna Sethuraman <krishna@sgihub.corp.sgi.com> Kurt D Schwehr <kdschweh@insci14.ucsd.edu> Ludovic Courtès <ludo@gnu.org> +Marc Aldorasi <m101010a@gmail.com> Mark Waite <markw@mddmew.fc.hp.com> Martin P.J. Zinser <zinser@decus.de> Martin Rex <martin.rex@sap-ag.de> @@ -73,6 +74,7 @@ Olaf Kirch <okir@ns.lst.de> Paolo Bonzini <bonzini@gnu.org> Paul Eggert <eggert@twinsun.com> Paul Kimoto <kimoto@spacenet.tn.cornell.edu> +Péter Radics <mitchnull@gmail.com> Phillip C. Brisco <phillip.craig.brisco@ccmail.census.gov> Philipp Kohlbecher <xt28@gmx.de> Philippe Defert <Philippe.Defert@cern.ch> |