diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-03 15:23:33 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-03 15:23:54 -0700 |
commit | cbf55dfc4c224fb0f918fcd526e105ecc4022c78 (patch) | |
tree | 75e33bc3ca0591b69a60fa01505987abe57174d0 /doc | |
parent | 706855071736294c541410eac959b167bb346ed5 (diff) | |
download | grep-cbf55dfc4c224fb0f918fcd526e105ecc4022c78.tar.gz |
grep: tighten -i doc
* doc/grep.in.1:
* doc/grep.texi (Matching Control):
* src/grep.c (usage):
Make it clearer that -i affects patterns and data, but not
file names (Bug#37604).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grep.in.1 | 3 | ||||
-rw-r--r-- | doc/grep.texi | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/grep.in.1 b/doc/grep.in.1 index 4a3e2747..a2cbf5c0 100644 --- a/doc/grep.in.1 +++ b/doc/grep.in.1 @@ -250,7 +250,8 @@ option, search for all patterns given. The empty file contains zero patterns, and therefore matches nothing. .TP .BR \-i ", " \-\^\-ignore\-case -Ignore case distinctions, so that characters that differ only in case +Ignore case distinctions in patterns and input data, +so that characters that differ only in case match each other. .TP .BR \-v ", " \-\^\-invert\-match diff --git a/doc/grep.texi b/doc/grep.texi index e6e0dbea..f5edc721 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -198,7 +198,8 @@ The empty file contains zero patterns, and therefore matches nothing. @opindex -y @opindex --ignore-case @cindex case insensitive search -Ignore case distinctions, so that characters that differ only in case +Ignore case distinctions in patterns and input data, +so that characters that differ only in case match each other. Although this is straightforward when letters differ in case only via lowercase-uppercase pairs, the behavior is unspecified in other situations. For example, uppercase ``S'' has an |