Hi people,

I use "Version JM 93u 2011-02-08".

With that I noticed a strange surprise how functions in $FPATH are
processed depending on current directory by 'cd':

Script 'caller':

VARIABLE=empty
alias ALIAS=dummy
echo pre-autoload
autoload Q
echo post-autoload
Q
echo post-call
echo $VARIABLE
type Q ALIAS

Script 'Q':

VARIABLE=value
alias ALIAS=COMMAND
echo pre-func-def
function Q { echo world ;}
echo post-func-def

Put 'Q' in dir assigned to FPATH.

2 cases:
- $PWD != $FPATH ==>> OK
- $PWD == $FPATH ==>> 'Q' is never loaded, executed, parsed.

Why is that?

Debugging with 'set -x' didn't give me any clue.

Wrong use of FPATH/functions, undocumented feature or core error?

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to