On Wed, Dec 25, 2013 at 06:41:17PM +0400, vollitwr . wrote: (...)
> Description: > The patterns [A-C] and [ABC] work different! [A-C] ignores case and > [ABC] does not. > It is true for any such kind of patterns, e.g., [w-z] vs [wxyz]. > This bug reveals itself with many systems: OpenSuse 12, Mandriva 2010 > (32 bits), Debian 7.1, ... This is not a bug. It's well known that character set ranges depend on your locale configuration. You seem to be expecting [A-C] to match ASCII, but your (unspecified) locale expands differently. In particular, it's the collation order that specifies which character comes after which. > Repeat-By: > Try 'echo [ABC]*' and 'echo [A-C]*'. For example, the first command may show > 'Axe' but second may also show 'axe'. Try with different locales, like the POSIX locale. Read more about it: man 7 locale -- Eduardo Alan Bustamante López