Since I can't think of a sane reason to check this and care in any script, yes, kill it. ok beck@
On Mon, Dec 7, 2015 at 10:06 PM, Michael McConville <[email protected]> wrote: > It's been 0.9 since the original import in 2003... > > > Index: grep.1 > =================================================================== > RCS file: /cvs/src/usr.bin/grep/grep.1,v > retrieving revision 1.43 > diff -u -p -r1.43 grep.1 > --- grep.1 13 Jan 2015 04:45:34 -0000 1.43 > +++ grep.1 8 Dec 2015 04:59:35 -0000 > @@ -244,9 +244,6 @@ Nonexistent and unreadable files are ign > (i.e. their error messages are suppressed). > .It Fl U > Search binary files, but do not attempt to print them. > -.It Fl V > -Display version information. > -All other options are ignored. > .It Fl v > Selected lines are those > .Em not > Index: grep.c > =================================================================== > RCS file: /cvs/src/usr.bin/grep/grep.c,v > retrieving revision 1.55 > diff -u -p -r1.55 grep.c > --- grep.c 28 Nov 2015 01:17:12 -0000 1.55 > +++ grep.c 8 Dec 2015 04:59:35 -0000 > @@ -137,7 +137,6 @@ static const struct option long_options[ > {"basic-regexp", no_argument, NULL, 'G'}, > {"with-filename", no_argument, NULL, 'H'}, > {"binary", no_argument, NULL, 'U'}, > - {"version", no_argument, NULL, 'V'}, > {"text", no_argument, NULL, 'a'}, > {"byte-offset", no_argument, NULL, 'b'}, > {"count", no_argument, NULL, 'c'}, > @@ -328,10 +327,6 @@ main(int argc, char *argv[]) > break; > case 'U': > binbehave = BIN_FILE_BIN; > - break; > - case 'V': > - fprintf(stderr, "grep version %u.%u\n", VER_MAJ, > VER_MIN); > - exit(0); > break; > #ifndef NOZ > case 'Z': > Index: grep.h > =================================================================== > RCS file: /cvs/src/usr.bin/grep/grep.h,v > retrieving revision 1.23 > diff -u -p -r1.23 grep.h > --- grep.h 7 Dec 2015 18:50:06 -0000 1.23 > +++ grep.h 8 Dec 2015 04:59:35 -0000 > @@ -34,9 +34,6 @@ > #include <stdio.h> > #include <zlib.h> > > -#define VER_MAJ 0 > -#define VER_MIN 9 > - > #define BIN_FILE_BIN 0 > #define BIN_FILE_SKIP 1 > #define BIN_FILE_TEXT 2 >
