Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: shortloops for while?
- X-seq: zsh-users 12974
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: shortloops for while?
- Date: Tue, 17 Jun 2008 15:58:14 +0200
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=2owKjTof3pNMVgQppHydz3MHAVWyljR9KLsYJJjFKTc=; b=kRj2izn+Y8E9AtnMiyhkRl7jsHbI2cGmHSzhVU09WuB188QuytU672LUn1aBHyCJUU snP+TN2eSjX+qV7XuiXFMZCIxDHUDYIEJ92oluB9jE0Qe0bldzOWVlT2m1aBA0RSnv/5 rtYOK0x2WzRer7aeorulVWMddq5q6rTRf6jb0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Lc1o3bZVfaqKDvNZd8zjRODzCcjJ4FCYn+C+xZt/9LDnwLACiQtkoQSutHDwE51/0P oQRpz/4Tvp3zwW56wMMCoCCGA5TSvFED31X/LmaxGuIkq25mrVW6+v8+Q/0R/n1vW7s0 FxIWrqGqNdx71DdjLGysWuyf4KUb51NfNqsHI=
- In-reply-to: <200806171352.m5HDqJrD014813@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70806170642v5340abf9o79af3460c4e1008d@xxxxxxxxxxxxxx> <200806171352.m5HDqJrD014813@xxxxxxxxxxxxxx>
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