Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: brace expansion not happening



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