Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: shortloops for while?



On Tue, Jun 17, 2008 at 15:52, Peter Stephenson <pws@xxxxxxx> wrote:


> It does appear the parser doesn't support any short looping syntax for
> while.  It may be to do with the fact that in regular shell parsing any
> set of statements can come between the "while" and the "do":

For shortloops only, couldn't this case simply be disallowed?
Everyone using shortloops should be aware of this.

Of course, this could hurt if there is a syntax error in a normal while
loop where the do has gone missing. This would behave in unexpected
ways.


Richard



Messages sorted by: Reverse Date, Date, Thread, Author