Caseless collate sequence in en_GB.UTF8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
do this in a gash (temporary) directory:
touch A a B b
ls [A-Z]*
you get:-
A b B
What most people (especially unix users with >25 years experience) expect is:-
A B
I found out about this by accident yesterday by doing "rm [A-Z]*" in a directory expecting only files with a initial uppercase letter to be removed. You can imagine my surprise when every file (except those starting in 'a') where removed. Fortunately most of the files were either redundant or backed up, but it still caused me a completely unnecessary hour's work to restore the damage.
Obviously the collating sequence is aAbBcCdD... but that really does *not* make it right. Other linux distros do not have this problem, but then they seem to set:
export LC_COLLATE=C
as standard, which is missing in a standard ubuntu installation (6.06lts -> 7.04)
That *is* the work around, but I would respectfully suggest that you set it as standard before someone destroys something irreplaceable!
Changed in bash: | |
importance: | Undecided → Low |
description: | updated |
What most people (especially unix users with >25 years experience) is:
should read:
What most people (especially unix users with >25 years experience) expect is: