zsh-users
 help / color / mirror / code / Atom feed
From: "Eric Mangold" <teratorn@world-net.net>
To: zsh-users@sunsite.dk
Cc: "grover mitchell" <baguagrover@gmail.com>
Subject: Re: brace expansion question
Date: Wed, 13 Apr 2005 14:20:35 +1000 (ChST)	[thread overview]
Message-ID: <37104.202.128.83.123.1113366035.squirrel@www.world-net.net> (raw)
In-Reply-To: <729088040504121813272d8ef2@mail.gmail.com>

> 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.


  reply	other threads:[~2005-04-13  4:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-13  1:13 grover mitchell
2005-04-13  4:20 ` Eric Mangold [this message]
2005-04-13  8:03   ` DervishD
2005-04-13 11:18     ` Mariusz Gniazdowski
2005-04-13 16:05       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37104.202.128.83.123.1113366035.squirrel@www.world-net.net \
    --to=teratorn@world-net.net \
    --cc=baguagrover@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).