functions lets you modify the attributes of the functions specified by the list of names in the command line. It is a built-in alias of sh defined with
alias functions='typeset -f'
If no function names are specified, functions displays all currently defined functions with the attributes specified by the options. If no options are given, functions lists all currently defined functions.
autoload informs the shell that the specified functions are undefined. It is a built-in alias of sh defined with
alias autoload='typeset -fu'
and thus equivalent to functions
When you try to execute an undefined function called funcname, the directories specified by the FPATH environment variable are searched directory by directory for a script named funcname.ksh or if that is not found, a script named funcname. If such a script is found, it is executed in the current shell environment. Once that script has executed, the function funcname, whose definition should have been included in the executed script, is now executed. If the function funcname is still undefined, an error results.
allows you to specify attributes for functions which are not yet defined.
marks a function for automatic export. See export.
contains a semicolon-separated list of directories to search for function definitions when an undefined function is executed.
Additionally, if this variable is defined and a PATH search fails to locate a command named cmdname, the directories specified in this variable are searched directory by directory for a space named cmdname.ksh or if that is not found, a script named cmdname. If such a script is found, it is executed in the current shell environment. Once that script has executed, the function cmdname, whose definition should have been included in the executed script, is now executed. If the function cmdname is still undefined, an error results.
Possible exit status values are:
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.
On UNIX systems, functions is built into the KornShell but not the Bourne Shell.
This is an alias built into the MKS KornShell.
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.5 Documentation Build 3.