Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Strange behavior with "for i in .."
- X-seq: zsh-users 16404
- From: Volodya Khomchak <kolombo.inc@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Strange behavior with "for i in .."
- Date: Fri, 23 Sep 2011 13:29:49 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=EvwTs38zvKK06AnoTJG0sSb4Plhj/A8wQ0s5OgfqWi4=; b=k0s1SAIxiuSpoJWFCg5jfpxms3UylzjcRI3bNraruIEKQWWFEbb9fR2/SGp5qXDdEH sGmEKiqaLq8Jn6HHMVabd0CVYO5/tnPIb5/jx4nNF6HcWrrqnS/0OvWUmgTt7rCWxkr9 xxpTgKvXtKVjbsitNkTSqW31rL0hbSEnbRsg4=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I faced with strange behavior with "for i in ..".
So the problem is next:
# for i in /etc/profile.d/*.sh;do echo $i;done
# zsh: bad math expression: operand expected at `/etc/profi...'
But if I change "i" to "file" it would work:
# for file in /etc/profile.d/*.sh;do echo $file;done
# /etc/profile.d/1.sh
# /etc/profile.d/2.sh
zsh --version
zsh 4.3.10 (x86_64)
So what is going on here ?
Thanks,
Volodya
Messages sorted by:
Reverse Date,
Date,
Thread,
Author