tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

grep.c usage bug



arm just sent us (Android) this:
https://android-review.googlesource.com/#/c/100970/1

here's the equivalent diff against NetBSD:

cvs diff: Diffing .
Index: grep.c
===================================================================
RCS file: /cvsroot/src/usr.bin/grep/grep.c,v
retrieving revision 1.11
diff -u -r1.11 grep.c
--- grep.c 6 May 2012 22:27:00 -0000 1.11
+++ grep.c 11 Jul 2014 02:05:44 -0000
@@ -159,7 +159,6 @@
 {
  fprintf(stderr, getstr(4), __progname);
  fprintf(stderr, "%s", getstr(5));
- fprintf(stderr, "%s", getstr(5));
  fprintf(stderr, "%s", getstr(6));
  fprintf(stderr, "%s", getstr(7));
  exit(2);
cvs diff: Diffing nls


Home | Main Index | Thread Index | Old Index