zmodload [ -dL ] [ ... ]
zmodload -e [ ... ]
zmodload [ -a [ -bcpf [ -I ] ] ] [ -iL ] ...
zmodload -u [ -abcdpf [ -I ] ] [ -iL ] ...
       Performs operations relating to zsh's loadable mod
       ules.   Loading  of modules while the shell is run
       ning (`dynamical loading') is not available on  all
       operating  systems,  or  on  all installations on a
       particular operating system, although the  zmodload
       command  itself is always available and can be used
       to manipulate modules built into  versions  of  the
       shell executable without dynamical loading.

       Without arguments the names of all currently loaded
       binary modules are printed.  The -L  option  causes
       this list to be in the form of a series of zmodload
       commands.  Forms with arguments are:

       zmodload [ -i ] name ...
       zmodload -u [ -i ] name ...
              In  the  simplest  case,  zmodload  loads  a
              binary module.  The module must be in a file
              with a name consisting of the specified name
              followed by a standard suffix, usually `.so'
              (`.sl' on HPUX).  If the module to be loaded
              is  already  loaded  and  the  -i  option is
              given,  the  duplicate  module  is  ignored.
              Otherwise  zmodload prints an error message.

              The named module is searched for in the same
              way a command is, using $module path instead
              of $path.  However, the path search is  per
              formed  even when the module name contains a
              `/', which it usually does.  There is no way
              to prevent the path search.

              With -u, zmodload unloads modules.  The same
              name must be given that was given  when  the
              module  was  loaded, but it is not necessary
              for the module to exist in  the  filesystem.
              The  -i  option  suppresses the error if the
              module is already  unloaded  (or  was  never

              loaded).

              Each  module  has a boot and a cleanup func
              tion.  The module will not be loaded if  its
              boot function fails.  Similarly a module can
              only be unloaded  if  its  cleanup  function
              runs successfully.

       zmodload -d [ -L ] [ name ]
       zmodload -d name dep ...
       zmodload -ud name [ dep ... ]
              The  -d option can be used to specify module
              dependencies.  The modules named in the sec
              ond  and subsequent arguments will be loaded
              before the module named in the  first  argu
              ment.

              With  -d  and one argument, all dependencies
              for that module are listed.  With -d and  no
              arguments,   all   module  dependencies  are
              listed.  This listing is  by  default  in  a
              Makefile-like format.  The -L option changes
              this format to a list of  zmodload  -d  com
              mands.

              If -d and -u are both used, dependencies are
              removed.  If only one argument is given, all
              dependencies for that module are removed.

       zmodload -ab [ -L ]
       zmodload -ab [ -i ] name [ builtin ... ]
       zmodload -ub [ -i ] builtin ...
              The  -ab option defines autoloaded builtins.
              It defines the specified builtins.  When any
              of  those  builtins  is  called,  the module
              specified in the first argument  is  loaded.
              If  only  the  name is given, one builtin is
              defined, with the same name as  the  module.
              -i  suppresses  the  error if the builtin is
              already defined or autoloaded, regardless of
              which module it came from.

              With  -ab  and  no arguments, all autoloaded
              builtins are listed, with  the  module  name
              (if  different)  shown  in parentheses after
              the builtin name.   The  -L  option  changes
              this  format  to  a list of zmodload -a com
              mands.

              If -b is used together with the  -u  option,
              it  removes builtins previously defined with
              -ab.  This is only possible if  the  builtin
              is  not yet loaded.  -i suppresses the error
              if the builtin is already removed (or  never

              existed).

       zmodload -ac [ -IL ]
       zmodload -ac [ -iI ] name [ cond ... ]
       zmodload -uc [ -iI ] cond ...
              The  -ac option is used to define autoloaded
              condition codes. The cond strings  give  the
              names  of the conditions defined by the mod
              ule. The  optional  -I  option  is  used  to
              define  infix  condition names. Without this
              option prefix condition names are defined.

              If given no  condition  names,  all  defined
              names  are  listed  (as a series of zmodload
              commands if the -L option is given).

              The  -uc  option  removes  definitions   for
              autoloaded conditions.

       zmodload -ap [ -L ]
       zmodload -ap [ -i ] name [ parameter ... ]
       zmodload -up [ -i ] parameter ...
              The -p option is like the -b and -c options,
              but makes zmodload work on autoloaded param
              eters instead.

       zmodload -af [ -L ]
       zmodload -af [ -i ] name [ function ... ]
       zmodload -uf [ -i ] function ...
              The  -f  option  is  like the -b, -p, and -c
              options,  but   makes   zmodload   work   on
              autoloaded math functions instead.

       zmodload -a [ -L ]
       zmodload -a [ -i ] name [ builtin ... ]
       zmodload -ua [ -i ] builtin ...
              Equivalent to -ab and -ub.

       zmodload -e [ string ... ]
              The  -e  option  without arguments lists all
              loaded modules.   With  arguments  only  the
              return  status is set to zero if all strings
              given as arguments are names of loaded  mod
              ules and to one if at least on string is not
              the name of a loaded  module.  This  can  be
              used  to test for the availability of things
              implemented by modules.

       Note that zsh makes no distinction between  modules
       that  were  linked  into the shell and modules that
       are loaded dynamically. In both cases this  builtin
       command  has  to  be  used  to  make  available the
       builtins  and  other  things  defined  by   modules
       (unless   the   module   is   autoloaded  on  these

       definitions). This is true even  for  systems  that
       don't support dynamic loading of modules.
