bug-grep
[Top][All Lists]
Advanced

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

bug#17640: grep with -m reads the entire input


From: Marc Aldorasi
Subject: bug#17640: grep with -m reads the entire input
Date: Fri, 30 May 2014 01:45:19 -0400

With grep 2.18, the -m option would cause grep to stop reading input
after printing the requested number of matching lines.  With version
2.19, grep reads the entire input before exiting.  Interestingly, grep
does not read the entire input if the -c or -C0 options are added in
addition to -m, and also when using -l or -q instead of -m.  I believe
this is caused by commit 5122195.





reply via email to

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