PERFORCE change 143647 for review
Gabor Kovesdan
gabor at FreeBSD.org
Tue Jun 17 14:14:47 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=143647
Change 143647 by gabor at 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;
More information about the p4-projects
mailing list