\section functions functions - print or erase functions
\subsection function-synopsis Synopsis
functions [-e] FUNCTIONS...
\subsection functions-description Description
This builtin command is used to print or erase functions.
- -a
or --all
list all functions, even those whose name start with an underscore.
- -d DESCRIPTION
or --description=DESCRIPTION
change the description of this function
- -e
or --erase
causes the specified functions to be erased.
- -h
or --help
display a help message and exit
- -n
or --names
list only the names of all defined functions
If \c functions is called with no arguments, the names and definition
of all functions are printed, otherwise, the specified function
definitions will be printed.
If a function is automatically loaded, using functions -e
to erase it will not remove the function.