Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: brace expansion question
- X-seq: zsh-users 8676
- From: "Eric Mangold" <teratorn@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: brace expansion question
- Date: Wed, 13 Apr 2005 14:20:35 +1000 (ChST)
- Cc: "grover mitchell" <baguagrover@xxxxxxxxx>
- Importance: Normal
- In-reply-to: <729088040504121813272d8ef2@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <729088040504121813272d8ef2@xxxxxxxxxxxxxx>
> I have a file that contains a list like so:
>
> foo1{01..10}
> bar2{01..10}
>
> Is there any way to have zsh do a brace expansion on the contents of this
> file?
>
> Thanks!
>
This is kind of a lame way to do it. Hopefully someone has something
better :)
for word in `cat file`; eval echo $word
I guess you can adapt that to your needs.
Unfortunately, I don't see a parameter expansion flag that performs brace
expansion on the result. It seems like there ought to be one.
Perhaps the "e" flag should also do brace expansion in addition to the
other types of expansion it does. Hmm, there is probably a good reason it
doesn't.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author