2005-09-20 13:31:55 +00:00
|
|
|
\section functions functions - print or erase functions
|
|
|
|
|
|
|
|
\subsection function-synopsis Synopsis
|
2006-06-08 23:58:11 +00:00
|
|
|
<code>functions [-e] FUNCTIONS...</code>
|
2005-09-20 13:31:55 +00:00
|
|
|
|
|
|
|
\subsection functions-description Description
|
|
|
|
|
|
|
|
This builtin command is used to print or erase functions.
|
|
|
|
|
2006-06-08 23:58:11 +00:00
|
|
|
- <code>-a</code> or <code>--all</code> list all functions, even those whose name start with an underscore.
|
|
|
|
- <code>-d DESCRIPTION</code> or <code>--description=DESCRIPTION</code> change the description of this function
|
|
|
|
- <code>-e</code> or <code>--erase</code> causes the specified functions to be erased.
|
|
|
|
- <code>-h</code> or <code>--help</code> display a help message and exit
|
|
|
|
- <code>-n</code> or <code>--names</code> list only the names of all defined functions
|
2005-09-20 13:31:55 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2006-06-08 23:58:11 +00:00
|
|
|
If a function is automatically loaded, using <code>functions -e</code>
|
|
|
|
to erase it will not remove the function.
|
2005-09-20 13:31:55 +00:00
|
|
|
|