home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!gumby!yale!hsdndev!news.cs.umb.edu!mzraly
- From: mzraly@ra.cs.umb.edu (Michael S. Zraly)
- Newsgroups: comp.unix.questions
- Subject: Bourne shell question about $ expansion
- Message-ID: <1992Jul30.170651.8939@cs.umb.edu>
- Date: 30 Jul 92 17:06:51 GMT
- Sender: news@cs.umb.edu (USENET News System)
- Distribution: usa
- Organization: University of Massachusetts at Boston
- Lines: 19
- Originator: mzraly@ra.cs.umb.edu
- Nntp-Posting-Host: ra.cs.umb.edu
-
- Here's another question for y'all:
-
- 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
-
- # thios does NOT work!
- xxx=bar
- bar=foo
- echo $($xxx)
-
- to produce
-
- foo
-
- -- Mike
- --
- Mike Zraly Do not meddle in the affairs of troff,
- mzraly@cs.umb.edu for it is subtle and quick to anger.
-