Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mapfile, many files and globbin
- X-seq: zsh-users 17823
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: Wawrzek Niewodniczanski <main@xxxxxxxxxxxx>
 
- Subject: Re: mapfile, many files and globbin
 
- Date: Wed, 05 Jun 2013 23:17:40 -0700
 
- Cc: Zsh Users <zsh-users@xxxxxxx>
 
- In-reply-to:  <CAC7-vpBHuwkWBLqCPfAMSKFrz=wWbgU3FKSqm+0wzubboffwzA@mail.gmail.com>
 
- 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
 
- References:  <CAC7-vpCQajB9OFer41GAtrf3-uTxx856fasr7MWu2w+akJjUZg@mail.gmail.com>	<CAH+w=7aDh+Q4GjpGm4=ekhxUtOXJZk0nmwN3UgSrHa9heVZ_Zg@mail.gmail.com>	<CAC7-vpBHuwkWBLqCPfAMSKFrz=wWbgU3FKSqm+0wzubboffwzA@mail.gmail.com>
 
On Jun 5, 10:30pm, Wawrzek Niewodniczanski wrote:
}
} I just tested it and got:
} 
} names=( TEST/**/*list(.L+0e:'reply=(${(f)mapfile[$REPLY]})':) )
} zsh: bad floating point constant
} zsh: bad floating point constant
} zsh: no matches found: TEST/**/*list(.L+0e:reply=(${(f)mapfile[$REPLY]}):)
} 
} What's wrong?
You don't have the zsh/mapfile module loaded, so $mapfile is being
treated as an ordinary array and the subscript (that is, each file's
name) is being interpreted as an arithmetic expression.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author