From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23116 invoked from network); 24 Jan 2004 00:52:31 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Jan 2004 00:52:31 -0000 Received: (qmail 10 invoked by alias); 24 Jan 2004 00:51:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7015 Received: (qmail 29994 invoked from network); 24 Jan 2004 00:51:53 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Jan 2004 00:51:53 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [129.170.17.94] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Jan 2004 0:51:53 -0000 Received: from descolada.dartmouth.edu (descolada.dartmouth.edu [129.170.19.25]) by mailhub4.dartmouth.edu (8.12.10+DND/8.12.10) with ESMTP id i0O0ppCW012443 for ; Fri, 23 Jan 2004 19:51:51 -0500 Received: from omen by descolada.dartmouth.edu with local (Exim 3.36 #1 (Debian)) id 1AkC1e-0003fw-00 for ; Fri, 23 Jan 2004 19:51:50 -0500 Date: Fri, 23 Jan 2004 19:51:50 -0500 From: Omen Wild To: zsh users Subject: Re: Build a variable name from another variable? Message-ID: <20040124005150.GA14079@descolada.dartmouth.edu> References: <20040123224220.GB3354@descolada.dartmouth.edu> <4011B29F.8040304@uk.ibm.com> <20040123224220.GB3354@descolada.dartmouth.edu> <87oesugsnb.fsf@ceramic.fifi.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <4011B29F.8040304@uk.ibm.com> <87oesugsnb.fsf@ceramic.fifi.org> User-Agent: Mutt/1.5.4-2i X-MailScanner: No virus detected by mailhub4.Dartmouth.EDU --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Philippe Troin on Fri, Jan 23 15:19: > > % t=3D"${baz}contents" =20 > % echo ${${(P)t}} > bar contents >=20 > Works... > i could not manage to do it without an intermediate variable. Ah, this will probably work for me. Quoting Cosmo on Fri, Jan 23 23:47: > > Back in the old days, before these fancy complicated shells, I'd just do= =20 > this: I simplified a bit for the example, I'm actually trying to do stuff much more complicated than just a echo... Thanks, Omen --=20 Where do forest rangers go to "get away from it all"? --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAEcGm6QDOrpNC/+sRAlCTAKCQBb871wLa8cIFPxBSCiZt9TBx2ACffg6e 6GRtt2HCpbkGnUK/JFyD5VE= =bDJ7 -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--