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

5.0.8 regression regarding $() in arithmetic for-loops



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