summaryrefslogtreecommitdiffstats
path: root/src/kash/tests/netbsd/exit1
blob: 5139fe3cfa44660f63edcc484fe37d18ec76c5e9 (plain)
1
2
3
4
5
6
7
#!/bin/sh
x=`( trap 'echo exiting' EXIT; /usr/bin/true )`
if [ -z "$x" ]
then
	echo failed
	exit 1
fi