[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
- Re: select syntax violates the POLA, (continued)
- Re: select syntax violates the POLA, Andreas Schwab, 2021/04/02
- Re: select syntax violates the POLA, konsolebox, 2021/04/02
- Re: select syntax violates the POLA, Greywolf, 2021/04/05
- Re: select syntax violates the POLA, Chet Ramey, 2021/04/05
- Re: select syntax violates the POLA, Greywolf, 2021/04/05
- Re: select syntax violates the POLA, Chet Ramey, 2021/04/05
- Re: select syntax violates the POLA, konsolebox, 2021/04/02
- Re: select syntax violates the POLA, Robert Elz, 2021/04/02
- Re: select syntax violates the POLA, konsolebox, 2021/04/05
- Re: select syntax violates the POLA, Greywolf, 2021/04/05
- Re: select syntax violates the POLA,
Robert Elz <=
- Re: select syntax violates the POLA, Dale R. Worley, 2021/04/04
- Re: select syntax violates the POLA, Robert Elz, 2021/04/05
- Re: select syntax violates the POLA, konsolebox, 2021/04/05
- Re: select syntax violates the POLA, Oğuz, 2021/04/05
- Re: select syntax violates the POLA, Dale R. Worley, 2021/04/07
- Re: select syntax violates the POLA, Robert Elz, 2021/04/08
Re: select syntax violates the POLA, Greywolf, 2021/04/05
Re: select syntax violates the POLA, konsolebox, 2021/04/01
Re: select syntax violates the POLA, Robert Elz, 2021/04/01