El 03/12/14 a las 12:18, Jim Meyering escribió:
> On Wed, Dec 3, 2014 at 10:41 AM, Santiago <santi...@debian.org> wrote:
> ....
> > Jim, thanks for clarifying this.
> >
> > Please, find attached a simple patch to document this in the man page
> > and info doc.
> 
> Hi Santiago,
> Thank you for the patch.
> I have converted that into a patch for you, writing the
> commit log message and using the "From:" name and
> email in the git commit Author: field. I'll wait to hear from
> you, in case you'd prefer I use a different name or email.
> Also, I moved each added line up one, to precede the
> incidental note about equivalence to another option.

Hi Jim,

Thanks again. I've attached a patch with my full name.

Regards,

Santiago
>From 92f0aa9862a100e95906c779c6f3ef2bd6497d66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Santiago=20Ruano=20Rinc=C3=B3n?= <santi...@debian.org>
Date: Thu, 4 Dec 2014 10:45:47 +0100
Subject: [PATCH] doc: document grep-2.11 change in behavior of -r, --recursive

* doc/grep.texi (--recursive, -r): Mention the new behavior
of recursively searching "." when there is no FILE argument.
* doc/grep.in.1: Likewise.
That change first appeared in grep-2.11, released on 2012-03-02.
---
 doc/grep.in.1 | 1 +
 doc/grep.texi | 1 +
 2 files changed, 2 insertions(+)

diff --git a/doc/grep.in.1 b/doc/grep.in.1
index b6362ee..26deae6 100644
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -467,6 +467,7 @@ Search only files whose base name matches
 .BR \-r ", " \-\^\-recursive
 Read all files under each directory, recursively,
 following symbolic links only if they are on the command line.
+Note that if no file operand is given, grep searches the working directory.
 This is equivalent to the
 .B "\-d recurse"
 option.
diff --git a/doc/grep.texi b/doc/grep.texi
index da9a1be..63016bd 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -698,6 +698,7 @@ For each directory operand,
 read and process all files in that directory, recursively.
 Follow symbolic links on the command line, but skip symlinks
 that are encountered recursively.
+Note that if no file operand is given, grep searches the working directory.
 This is the same as the @samp{--directories=recurse} option.
 
 @item -R
-- 
2.1.3

Reply via email to