Date: Tue, 17 Jun 2008 14:14:46 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 143647 for review Message-ID: <200806171414.m5HEEkp7051770@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143647 Change 143647 by gabor@gabor_server on 2008/06/17 14:14:15 - Make -B compatible with GNU grep Affected files ... .. //depot/projects/soc2008/gabor_textproc/grep/util.c#24 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/grep/util.c#24 (text+ko) ==== @@ -279,8 +279,11 @@ if (!first && !prev && !tail && Aflag) printf("--\n"); tail = Aflag; - if (Bflag > 0) + if (Bflag > 0) { + if (!first && !prev) + printf("--\n"); printqueue(); + } linesqueued = 0; printline(l, ':'); } else { @@ -289,9 +292,6 @@ } } - if (!c && Bflag && prev) - printf("--\n"); - if (c) { prev++; first = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806171414.m5HEEkp7051770>