Bug 243500
Summary: | bash misinterprets [A-Z] | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marek Greško <gresko> |
Component: | bash | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED NOTABUG | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 7 | CC: | hdegoede |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-06-10 10:40:55 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marek Greško
2007-06-09 07:51:21 UTC
This is not a bug, if you want A-Z and a-z with a nationale local you should use A-z. with a nationale (not C) LC_COLLATE, A-C for example correctly expands to: AaBbC this is to be expected, of you also want to have the lowercase of the end of the range included, end with the lowercase: [A-c] or [A-z] Closing as not a bug, if you disagree please explain why and reopen. Aha. There is another problem. When I used to unset the LANG variable (and any of LC_* where not set) the default locale was C. Now, the default locale is something another. When I explicitly set LC_COLLATE (or LANG) to C. The behavior is as expected. Are you sure you have properly unset LANG and if you define that LC_ALL, unsetting LANG gives the C collate behaviour for me. # echo $LANG sk_SK.UTF-8 # unset LANG # export LANG # echo $LANG # set | grep LC_ # echo [A-Z] A a M m S s Z |