xref: /freebsd/contrib/dialog/samples/setup-tempfile (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#!/bin/sh
2# $Id: setup-tempfile,v 1.4 2016/01/26 22:42:47 tom Exp $
3# vile:shmode
4
5tempfile=`(tempfile) 2>/dev/null` || tempfile=/tmp/test$$
6trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_QUIT $SIG_TERM
7