summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2011-07-15 15:23:33 +0200
committerPaolo Bonzini <bonzini@gnu.org>2011-07-15 15:25:37 +0200
commit708b04abffa269253b92b35686e7852b7639adb7 (patch)
tree62f4141ff6664fd267424b0ab8e8a270ed776feb /doc
parentd82e0fce03553b929dac59e3effabc54bb02058f (diff)
downloadgrep-708b04abffa269253b92b35686e7852b7639adb7.tar.gz
doc: improve documentation of character classes in the man page
* doc/grep.in.1: Reword documentation of character classes.
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.in.19
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/grep.in.1 b/doc/grep.in.1
index e9b4589d..f1f68d0c 100644
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -676,11 +676,10 @@ and
.BR [:xdigit:].
For example,
.B [[:alnum:]]
-means
-.BR [0\-9A\-Za\-z] ,
-except the latter form depends upon the C locale and the
-\s-1ASCII\s0 character encoding, whereas the former is independent
-of locale and character set.
+means the character class of numbers and
+letters in the current locale. In the C locale and \s-1ASCII\s0
+character set encoding, this is the same as
+.BR [0\-9A\-Za\-z] .
(Note that the brackets in these class names are part of the symbolic
names, and must be included in addition to the brackets delimiting
the bracket expression.)