1echo before trap 2trap 'echo caught sigint' 2 3echo after trap 4 5for i in 1 2 3 6do 7 echo $i 8 sleep 5 9done 10