From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10367 invoked from network); 9 Mar 1999 00:53:55 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Mar 1999 00:53:55 -0000 Received: (qmail 15934 invoked by alias); 9 Mar 1999 00:53:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5691 Received: (qmail 15926 invoked from network); 9 Mar 1999 00:53:27 -0000 Date: Tue, 9 Mar 1999 00:53:25 +0000 From: Phil Pennock To: Zsh Development Workers Subject: Re: Z-Shell (zsh) FAQ changes this month Message-ID: <19990309005325.C11578@fysh.org> Mail-Followup-To: Zsh Development Workers References: <9902250957.AA30563@ibmth.df.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <9902250957.AA30563@ibmth.df.unipi.it>; from "Peter Stephenson" on Thu 25 Feb 1999 (10:57 +0100) Organisation: Organisation? Here? No, over there ----> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. Okay, I've caught up on everything and not seen anything on this, so... Typing away merrily, Peter Stephenson produced the immortal words: > 3.22: How do I get a variable's value to be evaluated as another variable? > > The problem is that you have a variable $E containing the string > `EDITOR', and a variable $EDITOR containing the string `emacs', > or something such. How do you get from $E to emacs in one easy > stage? > > There is no standard single-stage way of doing this. However, there > is a zsh idiom (available in all versions of zsh since 5.0) for this: zsh 5.0 already? I wasn't busy _that_ long. -- --> Phil Pennock ; GAT d- s+:+ a23 C++(++++) UL++++/I+++/S+++/B++/H+$ P++@$ L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+ G+ e+ h* r y?