[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 08 Oct 2001 13:41:08 -0400
Chet Ramey wrote:
> > Will FPATH be supported in a future release?
> With what semantics? Different versions of ksh treat FPATH differently.
It is described on page 90-91 of "Learning the Korn Shell", published
Basically, when the shell looks for a function definition
(after failing to find the simple command in the PATH),
the shell will walk down each directory in the FPATH until
it finds a file with the name of the function.
When found, it sources in the the file and executes the function.
The 'autoload' command tells the shell that the given
name is an undefined function name; the search of
the directories in PATH is skipped for the given function
name. Autoload allows you to have a function override
a command in the PATH.
Description: Card for David Lehmann
- FPATH, David Lehmann, 2001/10/05
- Re: FPATH, Chet Ramey, 2001/10/08
- Re: FPATH,
David Lehmann <=