Date: Sun, 6 Jul 2008 13:31:34 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 144780 for review Message-ID: <200807061331.m66DVYbN028006@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=144780 Change 144780 by gabor@gabor_server on 2008/07/06 13:31:22 - Little change on -V to be more informative and more consistent with GNU grep Requested by: Pedro F. Giffuni <pfgshield-freebsd@yahoo.com> Affected files ... .. //depot/projects/soc2008/gabor_textproc/grep/grep.c#57 edit .. //depot/projects/soc2008/gabor_textproc/grep/grep.h#33 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#57 (text+ko) ==== @@ -67,7 +67,7 @@ /* 7*/ "\t[--null] [pattern] [file ...]\n", /* 8*/ "parentheses not balanced", /* 9*/ "context out of range", -/*10*/ "FreeBSD grep 2.5.1\n", +/*10*/ "%s (BSD grep) %s\n", /*11*/ "unknown --binary-files option", /*12*/ "Binary file %s matches\n", /*13*/ "value out of range", @@ -465,7 +465,7 @@ /* noop, compatibility */ break; case 'V': - printf(getstr(10)); + printf(getstr(10), __progname, VERSION); exit(0); case 'v': vflag = 1; ==== //depot/projects/soc2008/gabor_textproc/grep/grep.h#33 (text+ko) ==== @@ -44,6 +44,7 @@ extern char *errstr[]; +#define VERSION "2.5.1-FreeBSD" #define BINFILE_BIN 0 #define BINFILE_SKIP 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807061331.m66DVYbN028006>