>From 92f0aa9862a100e95906c779c6f3ef2bd6497d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ruano=20Rinc=C3=B3n?= 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