svn commit: r270132 - head/usr.bin/grep
Gabor Kovesdan
gabor at FreeBSD.org
Mon Aug 18 12:29:29 UTC 2014
Author: gabor
Date: Mon Aug 18 12:29:28 2014
New Revision: 270132
URL: http://svnweb.freebsd.org/changeset/base/270132
Log:
- Do not look for more matching lines if -L is specified
Submitted by: eadler (based on)
MFC after: 2 weeks
Modified:
head/usr.bin/grep/util.c
Modified: head/usr.bin/grep/util.c
==============================================================================
--- head/usr.bin/grep/util.c Mon Aug 18 09:40:19 2014 (r270131)
+++ head/usr.bin/grep/util.c Mon Aug 18 12:29:28 2014 (r270132)
@@ -336,7 +336,7 @@ procline(struct str *l, int nottext)
}
/* One pass if we are not recording matches */
- if (!wflag && ((color == NULL && !oflag) || qflag || lflag))
+ if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag))
break;
if (st == (size_t)pmatch.rm_so)
More information about the svn-src-head
mailing list