summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2014-08-18 12:29:28 +0000
committergabor <gabor@FreeBSD.org>2014-08-18 12:29:28 +0000
commitc617ee3eb58a78dc4a9d34a05d4e16fb0bc2d561 (patch)
treeac429f38c2a5d6925b2dc33cd0b2ca8323b4ee7f /usr.bin/grep
parenta9352ae49a1429504fc20f8f0b5f3ab2c6a36839 (diff)
downloadFreeBSD-src-c617ee3eb58a78dc4a9d34a05d4e16fb0bc2d561.zip
FreeBSD-src-c617ee3eb58a78dc4a9d34a05d4e16fb0bc2d561.tar.gz
- Do not look for more matching lines if -L is specified
Submitted by: eadler (based on) MFC after: 2 weeks
Diffstat (limited to 'usr.bin/grep')
-rw-r--r--usr.bin/grep/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index 3ec12fa..f3cf05f 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -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)
OpenPOWER on IntegriCloud