summaryrefslogtreecommitdiff
path: root/tests/misc/sigint-1.sh
blob: 7b74c3073c8c930f0554f2b03a73f9e0f6504158 (plain)
1
2
3
4
5
6
7
8
9
echo before trap
trap 'echo caught sigint' 2
echo after trap

for i in 1 2 3
do
	echo $i
	sleep 5
done