Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: indirect shell-vars Message-ID: <1145@virtech.UUCP> Date: 12 Sep 89 20:28:50 GMT References: <627@targon.UUCP> Organization: Virtual Technologies Inc Lines: 18 In article <627@targon.UUCP>, ruud@targon.UUCP (Ruud Harmsen) writes: > > sh -c "echo \$x`echo $xx`" > > Are there any better/faster/shorter ways? Perhaps using "eval", but > also executes the string, which is too much. How about: eval echo \$$xx -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+