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

Possible bug in 5.8



Zsh 5.8 seems to have a problem with the variable ‘i’, in a ‘for … in’
loop, where an item being iterated over starts with a ‘/‘:

% zsh --version
zsh 5.8 (x86_64-pc-linux-gnu)
% for p in /; do echo $p; done
/
% for i in /; do echo $i; done
zsh: bad math expression: operand expected at `/‘

This isn't a problem in 5.7.1. It looks like the variable ‘i’ is
special-cased to encourage an arithmetic expression evaluation.

Is this known? If not, what’s the best way to report it?

Thanks,

Simon




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