[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: |
Thu, 01 Apr 2021 21:33:31 -0400 |
Chet Ramey <chet.ramey@case.edu> writes:
> Yes, you need a list terminator so that `done' is recognized as a reserved
> word here. `;' is sufficient. Select doesn't allow the `done' unless it's
> in a command position. Some of the other compound commands have special
> cases, mostly inherited from the Bourne shell, to allow it.
I was going to ask why "else {" works, since according to the manual
page, "{" should not be recognized as a reserved word in this situation.
Dale
- select syntax violates the POLA, greywolf, 2021/04/01
- Re: select syntax violates the POLA, Greg Wooledge, 2021/04/01
- Re: select syntax violates the POLA, Chet Ramey, 2021/04/01
- Re: select syntax violates the POLA,
Dale R. Worley <=
- Re: select syntax violates the POLA, Robert Elz, 2021/04/01
- 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