Bug 118161
Summary: | character class range glob patterns fail to honor upper or lower case | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joe Smith <jes> |
Component: | bash | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED NOTABUG | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-03-12 18:26:17 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
Joe Smith
2004-03-12 18:19:03 UTC
See the bash FAQ, question E9. This is intentional behaviour. http://www.faqs.org/faqs/unix-faq/shell/bash/ Sorry. Shoulda figured that was too obvious. So, why don't '[:upper:]' and so forth work? $ ls -d *[0-9]* bash.0 bashbug.0 builtins.0 rbash.0 rose94.ps scripts.v2 ls -d *[:digit:]* article.ms bash.html bashdb builtins.ps loadables scripts.noah article.ps bashbug.0 bashref.html complete misc scripts.v2 article.txt bashbug.ps builtins.0 functions scripts startup-files This really breaks the principle of 'least suprise'. Has anyone considered doing as the FAQ auggests and adding 'LC_COLLATE=C' in /etc/profile? Sorry for the false report. [:digit:] is nothing to do with glob patterns. Perhaps you're thinking of regular expressions. > So, why don't '[:upper:]' and so forth work? Ok, so I'm a putz; it's what I get for reading the lousy man page. One decent example is all I'd need to get the idea: (See http://tille.soti.org/training/bash/ch04s03.html) $ cd /usr/share/doc/bash-2.05b/ $ ls -d *[[:digit:]]* bash.0 bashbug.0 builtins.0 rbash.0 rose94.ps scripts.v2 They also talk about LC_COLLATE on that soti.org page. So we both had something to learn ;-) Hopefully this (false) report will at least help the next poor luser who get's clobbered by this and tries to file a bug report... |