zsh-users
 help / color / mirror / code / Atom feed
From: Omen Wild <Omen.Wild@Dartmouth.EDU>
To: zsh users <zsh-users@sunsite.dk>
Subject: Re: Build a variable name from another variable?
Date: Fri, 23 Jan 2004 19:51:50 -0500	[thread overview]
Message-ID: <20040124005150.GA14079@descolada.dartmouth.edu> (raw)
In-Reply-To: <4011B29F.8040304@uk.ibm.com> <87oesugsnb.fsf@ceramic.fifi.org>

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Quoting Philippe Troin <phil@fifi.org> on Fri, Jan 23 15:19:
>
> % t="${baz}contents"   
> % echo ${${(P)t}}
> bar contents
> 
> Works...
> i could not manage to do it without an intermediate variable.

Ah, this will probably work for me.

Quoting Cosmo <cosmo@uk.ibm.com> on Fri, Jan 23 23:47:
>
> Back in the old days, before these fancy complicated shells, I'd just do 
> this:

I simplified a bit for the example, I'm actually trying to do stuff
much more complicated than just a echo...

Thanks,
   Omen

-- 
Where do forest rangers go to "get away from it all"?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-24  0:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23 22:42 Omen Wild
2004-01-23 23:19 ` Philippe Troin
2004-01-24  0:51   ` Omen Wild [this message]
2004-01-24  2:36     ` Bart Schaefer
2004-01-23 23:47 ` Cosmo

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=20040124005150.GA14079@descolada.dartmouth.edu \
    --to=omen.wild@dartmouth.edu \
    --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).