bug-bash
[Top][All Lists]
Advanced

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

Re: select syntax violates the POLA


From: konsolebox
Subject: Re: select syntax violates the POLA
Date: Mon, 5 Apr 2021 14:13:54 +0800

On Sat, Apr 3, 2021 at 1:09 AM Robert Elz <kre@munnari.oz.au> wrote:
>   |  [[ ]] and (( )) are a form of reserved words themselves
>
> Those are bash specials, and I am fairly sure that (( and )) will be
> operators, not reserved words (they cannot really be the latter, as ( and
> ) are operators) and I suspect that [[ and ]] might be as well, but there
> I'm not sure.   operators and reserved words are quite different things.
> Operators (unquoted) are recognised as themselves wherever they appear.

Stop suspecting and read the source code.  Look at parse.y starting at
line 2150.  They are labeled as "Reserved words".


-- 
konsolebox



reply via email to

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