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: Robert Elz
Subject: Re: select syntax violates the POLA
Date: Sat, 03 Apr 2021 00:19:14 +0700

    Date:        Fri, 02 Apr 2021 09:02:40 +0200
    From:        Andreas Schwab <schwab@linux-m68k.org>
    Message-ID:  <87o8exp3sf.fsf@linux-m68k.org>

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

Yes, I knew that ... but they are different, as in the "else {" case
the '{' is in the command word position (which "else" is not in "} else")
and so is a reserved word for that reason as well.

Everyone (well, everyone who understands something about shell syntax)
knows the "reserved words happen in the command word position" rule, it
is what makes

        echo if I do it while the case is ! done then in payment for ...

work without there being anything which is a reserved word there, but
(as is obvious by some of this discussion) not everyone realises the
consecutive reserved words rule exists.

kre




reply via email to

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