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: Andreas Schwab
Subject: Re: select syntax violates the POLA
Date: Fri, 02 Apr 2021 09:02:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

On Apr 02 2021, Robert Elz wrote:

>     Date:        Thu, 01 Apr 2021 21:33:31 -0400
>     From:        worley@alum.mit.edu (Dale R. Worley)
>     Message-ID:  <874kgpqxlg.fsf@hobgoblin.ariadne.com>
>
>   | I was going to ask why "else {" works,
>
> Wrong question.  That one is easy.  What follows
> 'else' is a list and the simplest form of a list
> is a simple command, which starts with a command
> word, so reserved words are always going to work
> there, even without the "follows a reserved word'
> rule.
>
> The right question would be why '} else' works.

The two case are not really different, they are covered by the same
rule:

    This recognition shall only occur when none of the characters is
    quoted and when the word is used as:

    * The first word following one of the reserved words other than
      case, for, or in

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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