[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with pathname expansion

From: Eduardo A . Bustamante López
Subject: Re: problem with pathname expansion
Date: Wed, 25 Dec 2013 15:11:13 -0800
User-agent: Mutt/1.5.21 (2010-09-15)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]