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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
214 B
Plaintext
Raw Normal View History

2012-10-21 18:18:09 +00:00
#!/bin/sh
2018-10-20 20:32:57 +00:00
# $Id: setup-tempfile,v 1.4 2016/01/26 22:42:47 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$$
2018-10-20 20:32:57 +00:00
trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_QUIT $SIG_TERM