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

Re: shortloops for while?



On Tue, Jun 17, 2008 at 02:56:32PM +0100, Stephane Chazelas wrote:
[...]
> You can use the short version only when list1-of-commands is
> ((...)) or [[...]] and list2-of-commands is bound by {} or ().
[...]

Sorry, not (), only {}:

while ((1)) {echo foo}

But not

while ((1)) (echo foo)

-- 
Stéphane



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