[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: David Lehmann
Subject: Re: FPATH
Date: 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
by O'Reilly.

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.


Attachment: lehmann.vcf
Description: Card for David Lehmann

reply via email to

[Prev in Thread] Current Thread [Next in Thread]