bug-bash
[Top][All Lists]
Advanced

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

Re: nocaseglob doesn't always work as expected.


From: Greg Wooledge
Subject: Re: nocaseglob doesn't always work as expected.
Date: Mon, 4 Oct 2010 11:36:29 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Oct 04, 2010 at 08:14:32PM +0700, Alexey Vinogradov wrote:
> alexey@ubuntu64:/tmp$ shopt -u nocaseglob; shopt -s nullglob; for a in
> [B-C]* ; do echo $a; done
> 
> But the range search here is thow out only non-capital "bigstore" from the
> listing, and still included both-cased files begin with c/C.

Locale issue.  You're using a locale that isn't C or POSIX, and in your
locale, there are characters between "B" and "C", and some of them are
probably lowercase.

http://mywiki.wooledge.org/locale for background info.



reply via email to

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