COHERENT help

This page displays the COHERENT help information for trap.

Listing of available help pages


trap -- Execute command on receipt of signal

trap [command] [n ...]

The shell executes command on receipt of signal n ....  If command omitted, the
shell resets traps on given signals to original values.  If command is a null
string, given signals are ignored.  If n is zero, the shell executes command
when it exits.  With no arguments, it prints currently set traps.  The shell
executes trap directly.