Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Z-Shell (zsh) FAQ changes this month
- X-seq: zsh-workers 5691
- From: Phil Pennock <comet@xxxxxxxx>
- To: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: Z-Shell (zsh) FAQ changes this month
- Date: Tue, 9 Mar 1999 00:53:25 +0000
- In-reply-to: <9902250957.AA30563@xxxxxxxxxxxxxxxxx>; from "Peter Stephenson" on Thu 25 Feb 1999 (10:57 +0100)
- Mail-followup-to: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organisation: Organisation? Here? No, over there ---->
- References: <9902250957.AA30563@xxxxxxxxxxxxxxxxx>
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author