Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!cg-atla!jmacdon From: jmacdon@cg-atla.agfa.com (Jeff MacDonald) Newsgroups: comp.unix.questions Subject: recursive variable substitution in csh Message-ID: <9045@cg-atla.agfa.com> Date: 15 Aug 90 21:49:37 GMT Reply-To: jmacdon@cg-atla.UUCP (Jeff MacDonald) Distribution: usa Organization: Agfa Compugraphic Division Lines: 17 In the C-shell, how does one evaluate a variable which contains the name of a variable in order to get the value of the variable contained by the variable that one is evaluating? To wit: set x = 'ABC' set y = '$x' set z = # some function of y such that $z == "ABC" Don't ask how I got into this predicament, it's not funny! -- Jeff MacDonald ([decvax|samsung|ima|ulowell]!cg-atla!jmacdon) Agfa/Compugraphic Division 200-2-9F (jmacdon@cg-atla.agfa.com) 200 Ballardvale, Wilmington MA 01887 (508) 658-0200, extension 5406 Hi, Mom!