Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Possible bug in 5.8
- X-seq: zsh-users 27422
- From: Simon Chatterjee <jal@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Possible bug in 5.8
- Date: Mon, 20 Dec 2021 13:17:53 +0000
- Archived-at: <https://zsh.org/users/27422>
- List-id: <zsh-users.zsh.org>
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