🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1755

Re: Evaluating a nexted variable

#1755
From: Paul John Falstad
Date: Sun, 11 Nov 1990 01:34
22 lines
996 bytes
In article <MCNEILD.90Nov10134417@mcneild.Software.Mitel.COM> mcneild@mcneild.Software.Mitel.COM (Doug McNeil) writes:
>$ a=b
>$ c=a
>Determing the value of "a" given "c".
>I came up with:
>$ eval z="$`echo $c`"
>$ echo $z

Or:

$ eval z=\$$c
$ echo $z

or:

$ eval echo \$$c


--
Paul Falstad, pfalstad@phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD
"Your attention, please.  Would anyone who knows where the white courtesy
phone is located please pick up the white courtesy phone."
Technical Details
Message-ID: <3983@idunno.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!princeton!spot.Princeton.EDU!pfalstad
References: <MCNEILD.90Nov10134417@mcneild.Software.Mitel.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!princeton!spot.Princeton.EDU!pfalstad
From: pfalstad@spot.Princeton.EDU (Paul John Falstad)
Newsgroups: comp.unix.shell
Subject: Re: Evaluating a nexted variable
Message-ID: <3983@idunno.Princeton.EDU>
Date: 11 Nov 90 01:34:34 GMT
References: <MCNEILD.90Nov10134417@mcneild.Software.Mitel.COM>
Sender: news@idunno.Princeton.EDU
Distribution: na
Organization: Princeton University, Princeton, New Jersey
Lines: 22