Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!decwrl!ultra.dec.com!ellis From: ellis@ultra.dec.com (David Ellis) Newsgroups: comp.unix.questions Subject: Csh question Message-ID: <8807191241.AA18881@decwrl.dec.com> Date: 19 Jul 88 16:08:00 GMT Organization: Digital Equipment Corporation Lines: 19 In the csh, the expression $name or ${name} looks up the variable with the given name and substitutes its value. 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)? Csh gives an error message "Variable syntax." if I try something like echo ${$x} or even echo "`echo {\$}$x`" ---- David Ellis Digital Equipment Corporation -- BXB1-1/D03 85 Swanson Road, Boxboro MA 01719 -- (617) 264-5073 Usenet: {ucbvax,allegra,decvax}!decwrl!ultra.dec.com!ellis ARPA: ellis%ultra.dec@decwrl.dec.com