#!/bin/sh -
#
# this shows that multiple interrupts each re-start the trap handler
# (which I suppose is the safe, if slow, response to users banging ^C
#  impatiently).
#
echo first sleep, no trap handling
sleep 2

trap "echo trap handler entered ; sleep 5 ; echo trap handler finished. ; exit 1" 1 2 3 15

echo second sleep, with trap handling
sleep 10

echo normal ending.
exit 0
