problem with ls, not show a correct list

Andrey Chernov ache at freebsd.org
Fri Apr 7 09:48:37 UTC 2017


On 07.04.2017 11:51, Toomas Soome wrote:
> 
>> On 7. apr 2017, at 11:29, Andrey Chernov <ache at freebsd.org> wrote:
>>
>>>  Hi Allan, the ls show all files without case match
>>>
>>> ls [a-z]*
>>>
>>> show all files beginning with a and A  like this [aA-zZ]*
>>
>> No, last "Z" is not included.
>>
> 
> This is to define set of chars: { a, A-z, Z } ? A-z of course does not make any sense;) Of course note that in few locales z is sorted after s, meaning that list like that can be rather short;)

No, [A-z] makes perfect sense with CLDR collation we have, but maybe
unexpected effect.
Historically all latin letters have single case, so new times
upper/lower considered by CLDR as minor modification to the letter which
considered first. It is also the sorting used in dictionaries.



More information about the freebsd-current mailing list