From 2d44a00df196bcd2dc36a60f775b09af0a7d0bb9 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 16 Mar 2000 00:39:55 +0000 Subject: zsh-workers/10149 --- Doc/Zsh/builtins.yo | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 848f930f6..f185d865d 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1295,8 +1295,8 @@ Equivalent to tt(whence -c). findex(zcompile) cindex(wordcode, creation) cindex(compilation) -xitem(tt(zcompile) [ tt(-U) ] [ tt(-r) | tt(-m) ] var(file) [ var(name) ... ]) -xitem(tt(zcompile) tt(-c) [ tt(-M) ] [ tt(-r) | tt(-m) ] var(file) [ var(name) ... ]) +xitem(tt(zcompile) [ tt(-U) ] [ tt(-z) | tt(-k) ] [ tt(-r) | tt(-m) ] var(file) [ var(name) ... ]) +xitem(tt(zcompile) tt(-c) [ tt(-M) ] [ tt(-z) | tt(-k) ] [ tt(-r) | tt(-m) ] var(file) [ var(name) ... ]) item(tt(zcompile -t) var(file) [ var(name) ... ])( This builtin command can be used to create and display files containing the wordcode for functions or scripts. In the first form, a wordcode @@ -1332,6 +1332,16 @@ map wordcode files into memory. On such systems, the wordcode will only be read from the file, independent on the mode selected when the file was created. +The tt(-z) and tt(-k) options are used when the wordcode file contains +functions and these functions are autoloaded. If tt(-z) is given, the +function will be autoloaded as if the tt(KSHAUTOLOAD) option weren't +set, even if it is. The tt(-k) makes the function be loaded as if +tt(KASHAUTOLOAD) were set and if neither of these options is given, +the function will be loaded as determined by the setting of the +tt(KSHAUTOLOAD) option at the time the function is loaded. These +options may also be given in the lists of var(name)s and make all +following functions be loaded as described. + When creating wordcode files for scripts instead of functions, it is often better to use the tt(-r) option. Otherwise the whole wordcode file will remain mapped if the script defined one or more functions -- cgit 1.4.1