home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11320 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!flu!marc
  3. From: marc@watson.ibm.com (Marc Auslander)
  4. Subject: Re: ksh question
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <MARC.92Nov5142942@marc.watson.ibm.com>
  7. In-Reply-To: nick@osf.org's message of 05 Nov 92 14:36:24 GMT
  8. Date: Thu, 5 Nov 1992 19:29:41 GMT
  9. Distribution: comp
  10. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  11. References: <265@sabus.UUCP> <1992Oct17.164508.125@chmeds.ac.nz>
  12.     <1992Nov4.071702.14484@awdprime.austin.ibm.com>
  13.     <NICK.92Nov5093629@alphaville.osf.org>
  14. Nntp-Posting-Host: marc.watson.ibm.com
  15. Organization: IBM T.J. Watson Research Center, Hawthorne, New York
  16. Lines: 17
  17.  
  18. I know that earlier documentation recommended that ENV be set to:
  19.  
  20. ENV=${START[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}
  21.  
  22. and
  23.  
  24. START=path-name.
  25.  
  26. This gibberish causes the script in path-name to be executed
  27. for login shells, which look like they were invoked as -ksh, but not
  28. for subshells.  This can improve the performance of shell scripts
  29. significantly if the profile is complicated.
  30. --
  31.  
  32.  
  33. Marc Auslander       (IBM)<marc@marc.watson.ibm.com>      914 784-6699
  34.                      (Internet)<marc@watson.ibm.com>
  35.