functionsdisplay or modify KornShell functions |
KornShell Built-in |
functions [-tux] [name]
[name]...
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
If no function names are specified,alias functions='typeset -f'
functions
displays all currently defined functions with the attributes specified by the
options. If no options are given, functions lists all
currently defined functions.
-tturns on the xtrace option for the given functions. See
set.
-uallows you to specify attributes for functions which are not yet defined.
-xmarks a function for automatic export. See
export.
0Successful completion.
>0The number of invalid names specified on the command line.
functions is built into the KornShell
but not the Bourne Shell.