On 17/10/2015 11:35 PM, Glenn McIntosh wrote:
> On 17/10/15 19:55, Andrew McGlashan wrote:
>> The difference between [1] and [2] is just the set being [a-z] or [a-Z] ...
>>
>> So, with dotglob on, why does [1] give AAA and .A and not show .Z or ZZZ
>> when all I want should be the [a-z] set (lowercase) ???? I would expect
>> it not to show AAA .A .Z or ZZZ with this option.
>
> The order is specified by LC_COLLATE, which is locale dependent and
> might not be what you expect. A typical order interleaves the lower and
> capital letters (ie, a A b B c C d D ... z Z).
Thank you, that explains it very well. Although I don't seem to have
LC_COLLATE in my environment; at least I understand why I got this
behaviour though now.
> You can use [[:lower:]] if you just want lowercase letters.
Thanks
A.