Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: priority of execution




On 2022-10-25 11:36, Peter Stephenson wrote:
Yes, just to be helpful. You'll see once the function has been
autoloaded, it's just a normal function, and if you define a normal
function with that name the autoload flag just vanishes.

Right, I've done the experiment, whence is exactly up to date on that.  But it is helpful.


It's
really ordering rather than precedence.  If the function's already defined
it's not autoloadable, and it'll ignore attempts to make it so unless
you undefine it first.  Autoloading is just an instruction about how to
get the function if it's not there, it's not really a type of function
at all.

Thanks Peter, that's all quite clear and logical.




pws






Messages sorted by: Reverse Date, Date, Thread, Author