1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

40537: Document previous change to autoload

This commit is contained in:
Peter Stephenson 2017-02-13 16:34:27 +00:00
parent f5272bccd8
commit d8c66e65a2
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2017-02-13 Peter Stephenson <p.stephenson@samsung.com>
* 40537: Doc/Zsh/builtins.yo: document the foregoing.
* Sebastian: 40536: Src/builtin.c, Src/zsh.h: prepend directory
of function autoload with absolute path to fpath if loading a
function by relative path.

View file

@ -159,7 +159,10 @@ load from the file given (searching as usual for dump files in the given
location). The name of the function is the basename (non-directory
part) of the file. It is normally an error if the function is not found
in the given location; however, if the option tt(-d) is given, searching
for the function defaults to tt($fpath).
for the function defaults to tt($fpath). If a function is loaded by
absolute path, any functions loaded from it that are marked for
tt(autoload) without an absolute path have the load path of the parent
function temporarily prepended to tt($fpath).
If the option tt(-r) or tt(-R) is given, the function is searched for
immediately and the location is recorded internally for use when the