Csh question

Theo Hardendood hd at mh_co2.mh.nl
Wed Jul 20 22:29:41 AEST 1988


>From article <8807191241.AA18881 at decwrl.dec.com>, by ellis at ultra.dec.com (David Ellis):
> Is there any way to get the value of a variable whose name is the value of
> another variable?
> e.g. if we've done set x=a and set a=3, is there any simple csh expression
> in terms of x that yields the value of a (3)?

set a=3
set x=a
set test=`eval echo \$$x`

Theo Hardendood
USENET: hd at mh.nl via European backbone (mcvax).
UUCP  : ..!mcvax!mhres!mh_co2!hd



More information about the Comp.unix.questions mailing list