On Interupt. Control the action of a shell interrupt.

      onintr -

      onintr label

   -       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

Copyright © SS64.com 1999-2019
Some rights reserved