freebsd-skq/contrib/dialog/samples/setup-tempfile
2018-10-20 20:49:46 +00:00

7 lines
214 B
Bash

#!/bin/sh
# $Id: setup-tempfile,v 1.4 2016/01/26 22:42:47 tom Exp $
# vile:shmode
tempfile=`(tempfile) 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_QUIT $SIG_TERM