MPE/iX Shell and Utilities Reference Manual, Vol 1

functions(1) MPE/iX Shell and Utilities functions(1)
NAME
functions — display or modify shell functions
SYNOPSIS
functions [–tux] name name ...
DESCRIPTION
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(1) 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.
Options
functions accepts the following options:
–t turns on the xtrace option for the given functions. See set(1).
–u allows you to specify attributes for functions which are not yet defined.
–x marks a function for automatic export. See export(1).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to an invalid command line argument.
If you use the command to display the values of variables, the exit status value is the number
of names that are invalid.
Messages
Because this command is an alias for a utility built into the
MPE/iX Shell, see the sh(1) man
page for a complete list of error messages that you may receive when using it.
PORTABILITY
x/OPEN Portability Guide 4.0.
On UNIX systems, functions is built into the KornShell but not the Bourne Shell.
NOTE
This is an alias built into the shell.
Commands and Utilities 1-245