bkabrda / rpms / grep

Forked from rpms/grep 6 years ago
Clone

Blame grep-2.21-recurse-behaviour-change-doc.patch

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