home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
- From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
- Subject: Re: in Korn/Bourne how do you double substitute an env var???
- Message-ID: <mcook.714928367@fendahl.dev.cdx.mot.com>
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: fendahl.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <fish.714852962@news2.gsfc.nasa.gov>
- Date: Thu, 27 Aug 1992 15:12:47 GMT
- Lines: 14
-
- fish@daacdev1.stx.com writes:
-
- >if i had:
- >foo=bar
- >barfly=fish
- >echo ${${foo}fly} # i want fish as the output but my syntax is bad here
-
- >help
-
- Use "eval".
-
- eval echo \${${foo}fly}
-
- Michael.
-