yyyy@xxxxxxxx (Keld J¢rn Simonsen) wrote on 16.08.00 in
<yyyyyyyyyyyyyyyyyyyy@xxxxxxxxxx>:
> On Wed, Aug 16, 2000 at 09:15:26AM -0700, Ulrich Drepper wrote:
> > Keld J¢rn Simonsen <yyyy@xxxxxxxx> writes:
> >
> > > In my mind [a-c] should include a A b B c C (and diacritcs).
> > > New and novice users would expect that behaviour.
> >
> > On which planet do you live? People writing
> >
> > rm [a-z]*
> >
> > don't want to see their file named IMPORTANT being removed.
>
> Depends on who you are. Yes, people acustomed to the POSIX/C
> locale would expect what you say, and given that no shells
> or "rm" etc have been distributed widely in Linux that are
> locale dependent, many Linux people would expect the POSIX
> behaviour.
Actually, it's almost exactly the other way around. Bash *was* locale
dependent; it's recently stopped that behaviour, no doubt due to loud
protests from users that didn't want "vi [A-Z]*" be almost identical to
"vi *". (In a typical source tree, using the C locale, the first might
give you three files, where the second would give you thirty. And without
the case distinction, there would be *NO* cheap way of getting the first
version.)
> Novice people would expect [a-c] as all a's b's and c's
> whether they are uppercase or lowercase.
I'm doubtful.
MfG Kai
|