home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!news2.gsfc.nasa.gov!fish
- From: fish@daacdev1.stx.com
- Subject: in Korn/Bourne how do you double substitute an env var???
- Message-ID: <fish.714852962@news2.gsfc.nasa.gov>
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: daacdev1.stx.com
- Organization: Goddard Space Flight Center
- Date: Wed, 26 Aug 1992 18:16:02 GMT
- Lines: 13
-
- if i had:
- foo=bar
- barfly=fish
- echo ${${foo}fly} # i want fish as the output but my syntax is bad here
-
- help
-
- fish
- --
- John R. Vanderpool INTERNET: fish@daacdev1.stx.com
- NASA/GSFC VOX: 301-513-1683
- Hughes/STX Corporation FAX: 301-513-1608
- "arcadian driftwood, gypsy tailwind; they call my home, the land of snow" -jrr
-