diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-09-21 19:08:35 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-09-21 19:08:35 +0000 |
commit | dbec4fa6ccccb717608498b83989b21967948bde (patch) | |
tree | c1aaacbe8a16ae4d1cbf8754305ce2330bd62873 /Doc/Zsh/builtins.yo | |
parent | 8e43f7f3c839429849cb36ea0c84cdc05d40ad1d (diff) | |
download | zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.gz zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.xz zsh-dbec4fa6ccccb717608498b83989b21967948bde.zip |
30692: allow autoload +X -m to work
change to _path_files to make it load in that fashion
Diffstat (limited to 'Doc/Zsh/builtins.yo')
-rw-r--r-- | Doc/Zsh/builtins.yo | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 0e5353633..75745028f 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -108,7 +108,7 @@ ifnzman(noderef(Aliasing)). findex(autoload) cindex(functions, autoloading) cindex(autoloading functions) -item(tt(autoload) [ {tt(PLUS())|tt(-)}tt(UXktz) ] [ tt(-w) ] [ var(name) ... ])( +item(tt(autoload) [ {tt(PLUS())|tt(-)}tt(UXkmtz) ] [ tt(-w) ] [ var(name) ... ])( Equivalent to tt(functions -u), with the exception of tt(-X)/tt(+X) and tt(-w). @@ -129,6 +129,9 @@ undefined and marked for autoloading. If ksh-style autoloading is enabled, the function created will contain the contents of the file plus a call to the function itself appended to it, thus giving normal ksh autoloading behaviour on the first call to the function. +If the tt(-m) flag is also given each var(name) is treated as a +pattern and all functions already marked for autoload that match the +pattern are loaded. With the tt(-w) flag, the var(name)s are taken as names of files compiled with the tt(zcompile) builtin, and all functions defined in them are |