On Interupt. Control the action of a shell interrupt.
Syntax onintr - onintr label Options - Ignore all interrupts label Cause the shell to execute a `goto label' when an interrupt is received or a child process terminates because it was interrupted.
Without arguments, onintr restores the default action of the shell on interrupts, which is to terminate shell scripts or to return to the terminal command input level.
onintr is ignored if the shell is running detached and in system startup files (see FILES), where interrupts are disabled anyway.
"Death is a nonmaskable interrupt"
Related macOS commands:
break - Exit from a loop
nice - Set the priority of a command