freebsd-nq/contrib/dialog/samples/setup-tempfile
Nathan Whitehorn 2a664c03e5 Update dialog to 20120706: includes minor useability enhancements and
fixes for warnings encountered with clang.
2012-10-21 18:25:12 +00:00

7 lines
214 B
Bash

#!/bin/sh
# $Id: setup-tempfile,v 1.3 2012/07/06 17:51:56 tom Exp $
# vile:shmode
tempfile=`(tempfile) 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_TRAP $SIG_TERM