On Sun, Sep 14, 2025 at 09:12:17PM -0400, Lawrence Velázquez wrote:
> On Sun, Sep 14, 2025, at 8:51 PM, Duncan Roe via Bug reports for the GNU 
> Bourne Again SHell wrote:
> > $ [[ $'\u20' = [[:blank:]] ]]; echo "$?"
> > 0
>
> Now you're testing a regular space for some reason.
>
> In any case, it doesn't matter.  As far as I can tell, under UTF-8
> locales bash looks for possible token delimiters (i.e., characters
> in the "blank" character class) in U+0000 through U+007F only.
>
> --
> vq
>
D'oh! I was checking that the command syntax was good.

I'm still not getting A0 to be a blank:-

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=en_US.UTF-8
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$ [[ $'\uA0' = [[:blank:]] ]]; echo "$?"
1

Cheers ... Duncan.

Reply via email to