Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2010 18:57:48 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210479 - head/usr.bin/grep
Message-ID:  <201007251857.o6PIvmoS031484@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Sun Jul 25 18:57:48 2010
New Revision: 210479
URL: http://svn.freebsd.org/changeset/base/210479

Log:
  - Fix -l and -L by really surpressing output and just showing filenames
  
  Submitted by:	swell.k@gmail.com
  Approved by:	delphij (mentor)

Modified:
  head/usr.bin/grep/util.c

Modified: head/usr.bin/grep/util.c
==============================================================================
--- head/usr.bin/grep/util.c	Sun Jul 25 18:32:59 2010	(r210478)
+++ head/usr.bin/grep/util.c	Sun Jul 25 18:57:48 2010	(r210479)
@@ -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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007251857.o6PIvmoS031484>