Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: brace expansion not happening
- X-seq: zsh-users 13674
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: brace expansion not happening
- Date: Thu, 08 Jan 2009 14:56:17 +0000
- In-reply-to: <18790.4150.196379.84851@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <18790.4150.196379.84851@xxxxxxxxxxxxxx>
Carlos Carvalho wrote:
> Putting in a variable:
>
> % list=a/{b,c}-d
> % for i in $list; do echo $i; done
> a/{b,c}-d
> %
>
> I also tried ${~=list} to no avail. It seems that only brace expansion
> isn't done.
Use an array:
list=(a/{b,c}-d)
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author