bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing semicolon tolerated after double-bracket [[ ]] expression


From: Andreas Schwab
Subject: Re: Missing semicolon tolerated after double-bracket [[ ]] expression
Date: Mon, 15 Sep 2025 15:57:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Sep 15 2025, Chet Ramey wrote:

> On 9/13/25 10:55 AM, Lawrence Velázquez wrote:
>
>> Yeah, I misunderstood how locale_setblanks [1] works.  Its function
>> comment is:
>>      Set every character in the <blank> character class to be a
>>      shell break character for the lexical analyzer when the
>>      locale changes.
>> But it seems to only consider 0x00 through 0xFF, which are tabulated
>> into syntax.c at build time [2].
>
> That's the domain of isblank(3).

Which makes it useless for Unicode.  You need to use iswblank instead.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]