Re: Missing semicolon tolerated after double-bracket [[ ]] expression
From:
Lawrence Velázquez
Subject:
Re: Missing semicolon tolerated after double-bracket [[ ]] expression
Date:
Mon, 15 Sep 2025 12:32:05 -0400
On Sun, Sep 14, 2025, at 3:21 PM, Robert Elz wrote:
> Date: Sun, 14 Sep 2025 13:23:06 -0400
> From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= <vq@larryv.me>
> Message-ID: <bbe1cd4d-2e4d-41a1-be56-f49ef925c19c@app.fastmail.com>
>
> | yash takes this very seriously.
>
> And is very much the outlier - I couldn't find any other shell which
> reports other than "1 args", just yash. Not mksh, dash, ksh93, bosh,
> even not zsh (with or without --emulate sh). Can you?
Of the shells I have at hand, running under a UTF-8 locale on macOS,
only yash delimits on anything other than space and tab. (I tested
the twenty-five Unicode whitespace characters [*]. Eighteen of
them are <blank>s in my locale, and yash delimits on all of them.)
Under an ISO-8859-1 locale, only bash and yash delimit on anything
other than space and tab. (Specifically, they delimit on 0xA0. If
there were other <blank> characters, presumably those would be used
as well.)
[*]
https://en.wikipedia.org/w/index.php?title=Whitespace_character&oldid=1309009909#Unicode
--
vq