summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2010-07-25 18:57:48 +0000
committergabor <gabor@FreeBSD.org>2010-07-25 18:57:48 +0000
commit915b2e329d0a077ffa7807fa0979c6d227541822 (patch)
treef47cd3798c56066298b7e5b8cf16495a62b03cf1 /usr.bin/grep
parent8a41f327eb2b76da739a22667596f491fa4de06a (diff)
downloadFreeBSD-src-915b2e329d0a077ffa7807fa0979c6d227541822.zip
FreeBSD-src-915b2e329d0a077ffa7807fa0979c6d227541822.tar.gz
- Fix -l and -L by really surpressing output and just showing filenames
Submitted by: swell.k@gmail.com Approved by: delphij (mentor)
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 41d0d51..4de36a7 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");
OpenPOWER on IntegriCloud