Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: is variable with variable name possible?
- X-seq: zsh-users 15920
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: is variable with variable name possible?
- Date: Mon, 4 Apr 2011 15:48:32 +0200
- Cc: zzapper <david@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=84BO3yxHwT5MbpFTeWuaoYO01hLlq7cQFzsqJRshjIY=; b=azGY++sMl0LpGt9nVa2Pa9SDXLwnoeX6hnSqdCXF4HS13g6nojHjixK5JWzgDPJwgJ 0c91CYSxbdykTSusVjaSMF+9XgaheuE/I1mM5lIZ2W4NBLE6ElPvIv1rXke5TBzfsalf S+RGHEv+K//UFQaZBtRidJn5l/6pZXER6nZqs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=savQzzFIXflDcGzhhGDpXq7xNrJ4Bylg+Fdk1HFVOiPfov08fDJ/EIUvf1bQE1ypIt aMbtXo82atctwkCAlj4MU9M/VTnBUZ+gpbrM6Et5Hq4ezpgicRvBclXW/o1tA7kxER3O KxRFegyH7O5aTuzzDLM5cThWmblk4TSkwVcF8=
- In-reply-to: <Xns9EBD94C46B8C1zzappergmailcom@80.91.229.10>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <Xns9EBD94C46B8C1zzappergmailcom@80.91.229.10>
Hi,
2011/4/4 zzapper <david@xxxxxxxxxx>:
> somevar=$(pwd)
>
> but I want somevar to be a variable name
$ eval "$somevar=$(pwd)"
Best regards,
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author