file globbing in now case insensitive?
Colin Watson
cjwatson at ubuntu.com
Sun Apr 2 16:29:35 UTC 2017
On Sun, Apr 02, 2017 at 05:56:29PM +0200, Ralf Mardorf wrote:
> @barlop: The behavior of character ranges depends on the locale,
> specifically the LC_COLLATE setting In some (many?) locales, [a-z]
> includes "aAbB...yYz" but not "Z". You can enable extended globbing
> using shopt -s extglob. I get different results for [a-z] and
> [[:lower:]] on Cygwin. – Dennis Williamson Mar 1 '11 at 14:44 add a
>
> It's not regexp, which is where the confusion comes in. Instead, it
> uses a system called "globbing" - see:
>
> $ man 7 glob
>
> Instead of [a-z] you need to use [[:lower:]] as such:
Or just export LC_COLLATE=C.UTF-8.
--
Colin Watson [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list