[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³
|
From: |
Lawrence Velázquez |
|
Subject: |
Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³ |
|
Date: |
Sun, 07 Sep 2025 09:21:44 -0400 |
On Sun, Sep 7, 2025, at 8:59 AM, Greg Wooledge wrote:
> The ordering of characters within your locale is controlled by the
> authors of your locale
To contrast, I'm on macOS:
$ echo $BASH_VERSION
5.3.0(11)-maint
$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
$ ls -1
0.txt
1.txt
2.txt
3.txt
4.txt
².txt
³.txt
¹.txt
⁰.txt
⁴.txt
₀.txt
₁.txt
₂.txt
₃.txt
₄.txt
$ shopt -u globasciiranges
$ ls -1 [0-5]*
0.txt
1.txt
2.txt
3.txt
4.txt
--
vq
- Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Duncan Roe, 2025/09/07
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Greg Wooledge, 2025/09/07
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Grisha Levit, 2025/09/08
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Duncan Roe, 2025/09/08
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Grisha Levit, 2025/09/08
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Chet Ramey, 2025/09/08
- Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³, Grisha Levit, 2025/09/08