From 2ac5b1c7637bc73b007ef7ad9aede82a9a5aed5f Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Mon, 18 Aug 2014 12:29:28 +0000 Subject: [PATCH] - Do not look for more matching lines if -L is specified Submitted by: eadler (based on) MFC after: 2 weeks --- usr.bin/grep/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c index 3ec12fa7520..f3cf05f0411 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)