PERFORCE change 144780 for review

Gabor Kovesdan gabor at FreeBSD.org
Sun Jul 6 13:31:34 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=144780

Change 144780 by gabor at 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 at 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


More information about the p4-projects mailing list