Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 17:12:01 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r224981 - user/gabor/grep/trunk
Message-ID:  <201108181712.p7IHC19B066407@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108181712.p7IHC19B066407>