diff options
author | Jim Meyering <meyering@fb.com> | 2021-01-31 09:10:01 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2021-01-31 14:09:46 -0800 |
commit | 70517057c9234146d56bb05cc22cd62ab6407c86 (patch) | |
tree | bafe11a34889bf322956eda4b2d5b99c9fc8f2e7 /doc | |
parent | 74cda437ff9a594edb4c7300950cd23f2346f856 (diff) | |
download | grep-70517057c9234146d56bb05cc22cd62ab6407c86.tar.gz |
doc: man: fix -L description and improve -l's
* doc/grep.texi (-L): Remove erroneous sentence about stopping early.
With -L, grep cannot stop scanning early.
(-l): Tweak existing wording.
* doc/grep.in.1: Remove the -L sentence here, too.
(-l): Copy the sentence from grep.texi, to clarify: it's only per-file
scanning that stops upon match. Reported by Robert Bruntz
in http://debbugs.gnu.org/46179
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grep.in.1 | 3 | ||||
-rw-r--r-- | doc/grep.texi | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/doc/grep.in.1 b/doc/grep.in.1 index db270dd8..c0b6b405 100644 --- a/doc/grep.in.1 +++ b/doc/grep.in.1 @@ -319,13 +319,12 @@ is Suppress normal output; instead print the name of each input file from which no output would normally have been printed. -The scanning will stop on the first match. .TP .BR \-l ", " \-\^\-files\-with\-matches Suppress normal output; instead print the name of each input file from which output would normally have been printed. -The scanning will stop on the first match. +Scanning each input file stops upon first match. .TP .BI \-m " NUM" "\fR,\fP \-\^\-max\-count=" NUM Stop reading a file after diff --git a/doc/grep.texi b/doc/grep.texi index 19099ccc..e3b1555b 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -323,7 +323,6 @@ which only covers the color for matched text. Suppress normal output; instead print the name of each input file from which no output would normally have been printed. -The scanning of each file stops on the first match. @item -l @itemx --files-with-matches @@ -333,7 +332,7 @@ The scanning of each file stops on the first match. Suppress normal output; instead print the name of each input file from which output would normally have been printed. -The scanning of each file stops on the first match. +Scanning each input file stops upon first match. (@option{-l} is specified by POSIX.) @item -m @var{num} |