Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2017 21:10:03 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316473 - head/usr.bin/grep
Message-ID:  <201704032110.v33LA3Lu084696@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Apr  3 21:10:02 2017
New Revision: 316473
URL: https://svnweb.freebsd.org/changeset/base/316473

Log:
  bsdgrep: treat rgrep as grep -r
  
  Submitted by:	   Kyle Evans <kevans91@ksu.edu>

Modified:
  head/usr.bin/grep/grep.c

Modified: head/usr.bin/grep/grep.c
==============================================================================
--- head/usr.bin/grep/grep.c	Mon Apr  3 21:06:49 2017	(r316472)
+++ head/usr.bin/grep/grep.c	Mon Apr  3 21:10:02 2017	(r316473)
@@ -360,6 +360,9 @@ main(int argc, char *argv[])
 	} else if (pn[0] == 'l' && pn[1] == 'z') {
 		filebehave = FILE_LZMA;
 		pn += 2;
+	} else if (pn[0] == 'r') {
+		dirbehave = DIR_RECURSE;
+		Hflag = true;
 	} else if (pn[0] == 'z') {
 		filebehave = FILE_GZIP;
 		pn += 1;



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