Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: forbidden variable in for loop.
- X-seq: zsh-users 17480
- From: Danek Duvall <duvall@xxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: forbidden variable in for loop.
- Date: Wed, 19 Dec 2012 15:58:50 -0800
- Cc: zsh-users@xxxxxxx
- In-reply-to: <50D1DBBC.20200@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxxxxx>, Ray Andrews <rayandrews@xxxxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <50D1DBBC.20200@eastlink.ca>
Ray Andrews wrote:
> for a in *; do echo $a; done
>
> All fine. but:
>
> for i in *; do echo $i; done
>
> Gives me a list of zeros. Followed by "zsh: bad floating point constant"
>
> It works fine for any letter of the alphabet so far tested except
> 'i'. For the life of me I can't guess what it is that makes 'i'
> special. Any thoughts?
You probably did a "typeset -E i" at some point in the past. "unset i"
should get it working again.
Danek
Messages sorted by:
Reverse Date,
Date,
Thread,
Author