Date:        Fri, 02 Apr 2021 09:02:40 +0200
    From:        Andreas Schwab <sch...@linux-m68k.org>
    Message-ID:  <87o8exp3sf....@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