]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/dialog/samples/setup-tempfile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / dialog / samples / setup-tempfile
1 #!/bin/sh
2 # $Id: setup-tempfile,v 1.3 2012/07/06 17:51:56 tom Exp $
3 # vile:shmode
4
5 tempfile=`(tempfile) 2>/dev/null` || tempfile=/tmp/test$$
6 trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_TRAP $SIG_TERM