From 36bcf7c1fbfa0c72fb5adf53d4ef28e43fbfc342 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Sun, 25 Jul 2010 18:57:48 +0000 Subject: [PATCH] - Fix -l and -L by really surpressing output and just showing filenames Submitted by: swell.k@gmail.com Approved by: delphij (mentor) --- 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 41d0d516049..4de36a715d1 100644 --- a/usr.bin/grep/util.c +++ b/usr.bin/grep/util.c @@ -343,7 +343,7 @@ procline(struct str *l, int nottext) return (c); /* Binary file */ /* Dealing with the context */ - if ((tail || c) && !cflag && !qflag) { + if ((tail || c) && !cflag && !qflag && !lflag && !Lflag) { if (c) { if (!first && !prev && !tail && Aflag) printf("--\n");