PWB1/usr/man/man1/onintr.1

Compare this file to the similar file:
Show the results in this format:

.th ONINTR I 5/31/77
.sh NAME
onintr \*- handle interrupts in shell files
.sh SYNOPSIS
.bd onintr
[ label ]
.sh DESCRIPTION
The
.it onintr
command catches interrupts received while the Shell
is reading from a file.
After the interrupt, and after any active process has completed,
the Shell procedure is transferred to the label specified.
Unless another
.it onintr
command is processed, the next interrupt
will kill the Shell.
The command without a label turns interrupts back on.
The special case ``onintr \*-'' causes interrupts to be totally
ignored,
both by the Shell itself and by
subsequent commands invoked by the Shell.

.it Onintr
is executed within the Shell.
.sh "SEE ALSO"
sh(I)