home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3644 < prev    next >
Encoding:
Text File  |  1992-08-26  |  806 b   |  25 lines

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