Library for managing bash signal traps.
With μpkg
upkg install -g orbit-online/trap.sh@<VERSION>
Appends CMD
to the SIGNAL
trap. $TRAP_POINTER
will contain a pointer
that can be used with trap_remove
to remove the command again.
Removes the command identified by POINTER
from the list of traps to run.