Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
5.0.8 regression regarding $() in arithmetic for-loops
- X-seq: zsh-workers 35932
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: 5.0.8 regression regarding $() in arithmetic for-loops
- Date: Mon, 27 Jul 2015 15:48:21 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The following three forms are broken in zsh-5.0.8-0-gf0068ed (release)
and zsh-5.0.8-109-gb6a2f11:
% for (( $(true) ; ; )) do echo yes; done
zsh: parse error near `; '
zsh: parse error near `$(true) ; ; )) do ec...'
% for (( ; $(true) ; )) do echo yes; done
zsh: parse error
zsh: parse error near `$(true) ; )) do echo...'
% for (( ; ; $(true) )) do echo yes; done
zsh: parse error near `true'
zsh: parse error near `$(true) )) do echo y...'
On 5.0.7 they used to behave like infinite loops.
--
Christian Neukirchen <chneukirchen@xxxxxxxxx> http://chneukirchen.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author