Hi Oğuz, On Mon, Sep 08, 2025 at 08:35:01AM +0300, Oğuz wrote: > On Sun, Sep 7, 2025 at 9:46 AM Duncan Roe via Bug reports for the GNU > Bourne Again SHell <[email protected]> wrote: > > superscripts ¹, ² & ³ are missing. > > I can only reproduce this with globasciiranges option on. What does > `shopt -p globasciiranges' show?
Good catch! Indeed it was on:- | $ shopt -p globasciiranges | shopt -s globasciiranges After `shopt -u globasciiranges`, the "bug" goes away. This raises another issue though, with `shopt -s globasciiranges` why do we see any in-range superscripts or subscripts at all? bash.1 says this about globasciiranges: "If set, range expressions used in pattern matching bracket expressions (see Pattern Matching above) behave as if in the traditional C locale" | $ shopt -u globasciiranges | $ ls -1 [i-j]* | i.txt | ⁱ.txt | j.txt | $ shopt -s globasciiranges | $ ls -1 [i-j]* | i.txt | ⁱ.txt | j.txt | $ export LC_COLLATE=C | $ ls -1 [i-j]* | i.txt | j.txt `shopt -s globasciiranges` has far less effect than `export LC_COLLATE=C`. Cheers ... Duncan.
