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: 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



reply via email to

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