Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
brace expansion not happening
- X-seq: zsh-users 13672
- From: carlos@xxxxxxxxxxxxxx (Carlos Carvalho)
- To: zsh-users@xxxxxxxxxx
- Subject: brace expansion not happening
- Date: Thu, 8 Jan 2009 12:39:50 -0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi list,
I need to do an expansion in more than one place, so I'd like to put
the pattern in a variable. However it's not equivalent:
% for i in a/{b,c}-d; do echo $i; done
a/b-d
a/c-d
%
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.
How can I get the full expansion using a variable? This case is for
interactive use.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author