home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!sun-barr!ames!pacbell.com!well!well.sf.ca.us!phanson
- From: phanson@well.sf.ca.us (Pete Hanson)
- Subject: Re: in Korn/Bourne how do you double substitute an env var???
- Message-ID: <phanson.714859047@well.sf.ca.us>
- Sender: news@well.sf.ca.us
- Reply-To: phanson@well.sf.ca.us
- Organization: The WELL
- References: <fish.714852962@news2.gsfc.nasa.gov>
- Date: Wed, 26 Aug 1992 19:57:27 GMT
- Lines: 17
-
- 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
-
-
- Try eval echo $"{${foo}fly}"
-
- --
- =====================
- Pete Hanson
- phanson@well.sf.ca.us
- =====================
-