home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!odin!chet
- From: chet@odin.INS.CWRU.Edu (Chet Ramey)
- Subject: Re: Bourne shell question about $ expansion
- Message-ID: <1992Jul30.194622.16495@usenet.ins.cwru.edu>
- Sender: news@usenet.ins.cwru.edu
- Nntp-Posting-Host: odin.ins.cwru.edu
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- References: <1992Jul30.170651.8939@cs.umb.edu>
- Distribution: usa
- Date: Thu, 30 Jul 92 19:46:22 GMT
- Lines: 15
-
- $ Is it possible to $-expand a shell variable whose name is stored
- $ in another shell variable? What I am looking for is the equivalent
- $ of
- $
- $ xxx=bar
- $ bar=foo
- $ echo $($xxx)
-
- eval echo \$$xxx
- --
- ``The use of history as therapy means the corruption of history as history.''
- -- Arthur Schlesinger
-
- Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-