#! /bin/sh trap 'rm -f tmp.trap ; trap 0 ; exit $st' 0 ( touch tmp.trap ) if test -f tmp.trap then st=0 else st=1 fi exit 1