]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20110616 snapshot
authorChet Ramey <chet.ramey@case.edu>
Thu, 29 Dec 2011 18:09:26 +0000 (13:09 -0500)
committerChet Ramey <chet.ramey@case.edu>
Thu, 29 Dec 2011 18:09:26 +0000 (13:09 -0500)
doc/bash.1
doc/bashref.texi

index d99bb2256ffd83d82fda0930385ff6ec9c63acbd..97100bb11384828b33958387f95b6cec15ef526e 100644 (file)
@@ -3256,11 +3256,21 @@ or a
 .B ^
 then any character not enclosed is matched.
 The sorting order of characters in range expressions is determined by
-the current locale and the value of the
+the current locale and the values of the
 .SM
 .B LC_COLLATE
-shell variable,
-if set.
+or
+.SM
+.B LC_ALL
+shell variables, if set.
+To obtain the traditional interpretation of range expressions, where
+.B [a\-d]
+is equivalent to
+.BR [abcd] ,
+set value of the
+.B LC_ALL
+shell variable to
+.BR C .
 A 
 .B \-
 may be matched by including it as the first or last character
index eb14a1d9c1ee6573aab098f9ca0c6ad2fac58848..03a5b50a339fa9d62f68b188721fe2982cf8155e 100644 (file)
@@ -2124,8 +2124,8 @@ may be matched by including it as the first or last character
 in the set.  A @samp{]} may be matched by including it as the first
 character in the set.
 The sorting order of characters in range expressions is determined by
-the current locale and the value of the @env{LC_COLLATE} shell variable,
-if set.
+the current locale and the values of the
+@env{LC_COLLATE} and @env{LC_ALL} shell variables, if set.
 
 For example, in the default C locale, @samp{[a-dx-z]} is equivalent to
 @samp{[abcdxyz]}.  Many locales sort characters in dictionary order, and in