home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5118 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!chemabs!lwv26
  3. From: lwv26@cas.org (Larry W. Virden)
  4. Subject: Re: ksh autoload quirk
  5. Message-ID: <1992Dec20.112016.14120@cas.org>
  6. Followup-To: comp.unix.shell
  7. Sender: usenet@cas.org
  8. Reply-To: lvirden@cas.org (Larry W. Virden)
  9. Organization: Nedriv Software and Shoe Shiners, Uninc.
  10. References: <BzDBn2.KAw@ddsw1.mcs.com> <WPM.92Dec18103702@exile.is.morgan.com>
  11. Date: Sun, 20 Dec 1992 11:16:30 GMT
  12. Lines: 20
  13.  
  14. Here is what our ATT Toolchest man page says about FPATH:
  15.  
  16.           FPATH
  17.                The search  path  for  function  definitions.   By
  18.                default  the  FPATH directories are searched after
  19.                the PATH  variable.   If  an  executable  file  is
  20.                found, then it is read and executed in the current
  21.                environment.  FPATH is searched before PATH when a
  22.                function with the -u attribute is referenced.  The
  23.                preset alias autoload preset alias (sic) causes a  func-
  24.                tion with the -u attribute to be created.
  25.  
  26. So it sounds like what happens is that first the alias table is searched,
  27. then the currently defined function table is searched, then PATH is searched,
  28. then FPATH is searched.  IF a function is marked with the -u - i.e. autload -
  29. then the last two search items are reversed.
  30. -- 
  31. Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
  32. Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
  33. Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
  34.