functions

display or modify KornShell functions

KornShell Built-in


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 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

-t

turns on the xtrace option for the given functions. See set.

-u

allows you to specify attributes for functions which are not yet defined.

-x

marks a function for automatic export. See export.


DIAGNOSTICS

Possible exit status values are:
0

Successful completion.

>0

The number of invalid names specified on the command line.


PORTABILITY

POSIX.2. 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 MKS KornShell.


SEE ALSO

Commands:
export, set, sh, typeset


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]