Path: utzoo!attcan!uunet!husc6!bbn!bbn.com!mesard From: mesard@bbn.com (Wayne Mesard) Newsgroups: comp.unix.questions Subject: Re: Csh question Message-ID: <27226@bbn.COM> Date: 20 Jul 88 17:07:01 GMT References: <8807191241.AA18881@decwrl.dec.com> Sender: news@bbn.COM Lines: 19 From article <8807191241.AA18881@decwrl.dec.com>, by ellis@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)? How 'bout: eval echo \$$x -- unsigned *Wayne_Mesard(); MESARD@BBN.COM BBN, Cambridge, MA When Martin Sheen visited me, he was smoking again after his heart attack, and I asked why. He said, 'It is my friend it is always there and doesn't pass judgment.' I said, 'Your friend is going to kill you.'" - Larry King