[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select syntax violates the POLA
From: |
Dale R. Worley |
Subject: |
Re: select syntax violates the POLA |
Date: |
Sun, 04 Apr 2021 20:27:15 -0400 |
Robert Elz <kre@munnari.OZ.AU> writes:
> From: worley@alum.mit.edu (Dale R. Worley)
>
> | I was going to ask why "else {" works,
>
> The right question would be why '} else' works.
Yeah, typo on my part. The manual page says
if list; then list; [ elif list; then list; ] ... [ else list; ] fi
so clearly there should be a ; or newline before the list in the
else-clause. But the grammar doesn't seem to enforce that:
if_clause : If compound_list Then compound_list else_part Fi
I'm sure that the real answer involves decrypting the logic inside Bash
that turns on recognition of reserved words, and that must be more
complicated than the rule in the manual page.
Dale
- Re: select syntax violates the POLA, (continued)
- 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, 2021/04/02
- Re: select syntax violates the POLA,
Dale R. Worley <=
- 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