Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 05:56:43 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316484 - head/usr.bin/grep
Message-ID:  <201704040556.v345uhOT099475@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Tue Apr  4 05:56:42 2017
New Revision: 316484
URL: https://svnweb.freebsd.org/changeset/base/316484

Log:
  bsdgrep(1): create rgrep link
  
  Create a convenience rgrep link for bsdgrep(1) that observes 'grep -r'
  behavior.
  
  A follow-up to r316473.
  
  Submitted by:	Kyle Evans <kevans91 at ksu.edu>
  Reviewed by:	emaste (earlier version), cem
  Differential Revision:	https://reviews.freebsd.org/D10109

Modified:
  head/usr.bin/grep/Makefile
  head/usr.bin/grep/grep.1

Modified: head/usr.bin/grep/Makefile
==============================================================================
--- head/usr.bin/grep/Makefile	Tue Apr  4 04:01:02 2017	(r316483)
+++ head/usr.bin/grep/Makefile	Tue Apr  4 05:56:42 2017	(r316484)
@@ -25,12 +25,14 @@ CFLAGS.gcc+= --param max-inline-insns-si
 .if ${MK_BSD_GREP} == "yes"
 LINKS=	${BINDIR}/grep ${BINDIR}/egrep \
 	${BINDIR}/grep ${BINDIR}/fgrep \
+	${BINDIR}/grep ${BINDIR}/rgrep \
 	${BINDIR}/grep ${BINDIR}/zgrep \
 	${BINDIR}/grep ${BINDIR}/zegrep \
 	${BINDIR}/grep ${BINDIR}/zfgrep
 
 MLINKS= grep.1 egrep.1 \
 	grep.1 fgrep.1 \
+	grep.1 rgrep.1 \
 	grep.1 zgrep.1 \
 	grep.1 zegrep.1 \
 	grep.1 zfgrep.1

Modified: head/usr.bin/grep/grep.1
==============================================================================
--- head/usr.bin/grep/grep.1	Tue Apr  4 04:01:02 2017	(r316483)
+++ head/usr.bin/grep/grep.1	Tue Apr  4 05:56:42 2017	(r316484)
@@ -34,7 +34,7 @@
 .Dt GREP 1
 .Os
 .Sh NAME
-.Nm grep , egrep , fgrep ,
+.Nm grep , egrep , fgrep , rgrep ,
 .Nm zgrep , zegrep , zfgrep
 .Nd file pattern searcher
 .Sh SYNOPSIS
@@ -341,6 +341,10 @@ will only search a file until a match ha
 making searches potentially less expensive.
 .It Fl R , Fl r , Fl Fl recursive
 Recursively search subdirectories listed.
+(i.e. force
+.Nm grep
+to behave as
+.Nm rgrep ) .
 .It Fl S
 If
 .Fl R



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