cc:  [email protected]
Subject: Re: Re: [ast-developers] problem with command substitution in here 
doc,  autoload function, and FPATH
--------


> David,
> 
> Moving the function definitions into a separate directory resolves the 
> problem. 
>   I was wondering if this behavior is documented anywhere?
> 
> Thanks,
> Herbert.
> 

Here is the paragraph at the top of page 163 in the New KornShell Command
and Programming Language book"

"If ksh locates the given command in a directory in the PATH parameter,
then ksh checks for that directory located in the function path search
parameter FPATH.  If the directory is located in FPATH, then ksh reads this
file in the current environment and then executes the function.
Caution: A directory that is both in PATH and FPATH should contain no
executable files other than function definitions."

Now that was written be for user defined types was added and before
dynamically loaded built-ins was loadable in this fashion.  The FPATH
directories are also searched for unknown type definitions and for
built-ins that need to be loaded as well as functions.  In all cases,
it reads the file as if it was a dot script and then tries to run
the function built-in or type.

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to