freebsd-nq/contrib/dialog/samples/setup-tempfile

7 lines
214 B
Plaintext
Raw Normal View History

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