[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with 'upper' class when nocaseglob
From: |
Lukáš Bařinka |
Subject: |
Problem with 'upper' class when nocaseglob |
Date: |
Thu, 2 Mar 2017 22:57:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
The version number of Bash:
GNU bash, version 4.4.11(1)-release
The hardware and operating system:
x86_64-pc-linux-gnu, Debian GNU/Linux 9
A description of the bug behaviour:
When the nocaseglob option is set, the [:upper:] class in pattern
does not match capital or small letters. On the other hand,
[:lower:] works fine.
A short script or ‘recipe’ which exercises the bug and may be used
to reproduce it:
$ touch a A
$ echo [[:upper:]]
A
$ shopt -s nocaseglob
$ echo [[:lower:]]
a A
$ echo [[:upper:]]
[[:upper:]]
- Problem with 'upper' class when nocaseglob,
Lukáš Bařinka <=