diff options
Diffstat (limited to 'builtins/trap.def')
-rw-r--r-- | builtins/trap.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/builtins/trap.def b/builtins/trap.def index 9523cfc3..2119f5b3 100644 --- a/builtins/trap.def +++ b/builtins/trap.def @@ -35,7 +35,11 @@ value. If ARG is the null string each SIGNAL_SPEC is ignored by the shell and by the commands it invokes. If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell. If -a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. +a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. If +a SIGNAL_SPEC is RETURN, ARG is executed each time a shell function or a +script run by the . or source builtins finishes executing. A SIGNAL_SPEC +of ERR means to execute ARG each time a command's failure would cause the +shell to exit when the -e option is enabled. If no arguments are supplied, trap prints the list of commands associated with each signal. |