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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to