First page Back Continue Last page Graphics
Functions
You may have noticed that traps behave like a special form of function. They are called (or invoked) by an event and consist of a collection of command statements. This is not an accident.
To unset (delete or remove) a function:
unset -f functionname
To list defined function names (note: my system seems to have over 400 functions, of which I have only defined 4 of my own):
declare -F | less
To list functions and definitions:
declare -f [functionname]