Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Build a variable name from another variable?
- X-seq: zsh-users 7015
- From: Omen Wild <Omen.Wild@xxxxxxxxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: Build a variable name from another variable?
- Date: Fri, 23 Jan 2004 19:51:50 -0500
- In-reply-to: <4011B29F.8040304@xxxxxxxxxx> <87oesugsnb.fsf@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040123224220.GB3354@xxxxxxxxxxxxxxxxxxxxxxx> <4011B29F.8040304@xxxxxxxxxx> <20040123224220.GB3354@xxxxxxxxxxxxxxxxxxxxxxx> <87oesugsnb.fsf@xxxxxxxxxxxxxxxx>
Quoting Philippe Troin <phil@xxxxxxxx> 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@xxxxxxxxxx> 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:
pgpvv0bzqOiYB.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author