summaryrefslogtreecommitdiffstats
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-09-21 19:08:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-09-21 19:08:35 +0000
commitdbec4fa6ccccb717608498b83989b21967948bde (patch)
treec1aaacbe8a16ae4d1cbf8754305ce2330bd62873 /Doc/Zsh
parent30687 with typo corrected: don't REPORTTIME if zleactive (diff)
downloadzsh-dbec4fa6ccccb717608498b83989b21967948bde.tar
zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.gz
zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.bz2
zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.lz
zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.xz
zsh-dbec4fa6ccccb717608498b83989b21967948bde.tar.zst
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')
-rw-r--r--Doc/Zsh/builtins.yo5
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