svn commit: r224981 - user/gabor/grep/trunk

Gabor Kovesdan gabor at FreeBSD.org
Thu Aug 18 17:12:02 UTC 2011


Author: gabor
Date: Thu Aug 18 17:12:01 2011
New Revision: 224981
URL: http://svn.freebsd.org/changeset/base/224981

Log:
  - Submatches are actually never needed

Modified:
  user/gabor/grep/trunk/grep.c

Modified: user/gabor/grep/trunk/grep.c
==============================================================================
--- user/gabor/grep/trunk/grep.c	Thu Aug 18 17:09:10 2011	(r224980)
+++ user/gabor/grep/trunk/grep.c	Thu Aug 18 17:12:01 2011	(r224981)
@@ -521,7 +521,6 @@ main(int argc, char *argv[])
 			break;
 		case 'o':
 			oflag = true;
-			cflags &= ~REG_NOSUB;
 			break;
 		case 'p':
 			linkbehave = LINK_SKIP;
@@ -555,11 +554,9 @@ main(int argc, char *argv[])
 			break;
 		case 'w':
 			wflag = true;
-			cflags &= ~REG_NOSUB;
 			break;
 		case 'x':
 			xflag = true;
-			cflags &= ~REG_NOSUB;
 			break;
 		case 'Z':
 			filebehave = FILE_GZIP;
@@ -593,7 +590,6 @@ main(int argc, char *argv[])
 			    strcasecmp("none", optarg) != 0 &&
 			    strcasecmp("no", optarg) != 0)
 				errx(2, getstr(3), "--color");
-			cflags &= ~REG_NOSUB;
 			break;
 		case LABEL_OPT:
 			label = optarg;


More information about the svn-src-user mailing list