zsh-users
 help / color / mirror / code / Atom feed
From: "Johann 'Myrkraverk' Oskarsson" <johann@myrkraverk.com>
To: zsh-users@sunsite.dk
Subject: Brace expansion from arrays?
Date: Sat, 20 May 2006 20:18:18 +0000	[thread overview]
Message-ID: <m34pzko3g5.fsf@jin.myrkraverk.com> (raw)

Hi,

Out of sheer curiosity, I was wondering if it was possible to brace
expand {stuff,to,expand}to from arrays too, that is

a=(stuff to expand)
print {$a}to

would output "stuffto toto expandto"

Prelimanary man page grepping and testing indicated: no.  So, is there
a way to get the same effects from array expansion? And, would
automagic brace expansion from arrays be 1) useful and 2) hard to
implement?


Johann
 
-- 
johann myrkraverk com (you know the drill with the @ and .)
I classify Outlook mail as spam, use something else.


             reply	other threads:[~2006-05-20 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 20:18 Johann 'Myrkraverk' Oskarsson [this message]
2006-05-20 21:45 ` Clint Adams
2006-05-20 23:12   ` Johann 'Myrkraverk' Oskarsson

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=m34pzko3g5.fsf@jin.myrkraverk.com \
    --to=johann@myrkraverk.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).