File: setup-tempfile

package info (click to toggle)
dialog 1.2-20140911-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,816 kB
  • ctags: 1,664
  • sloc: ansic: 16,924; sh: 6,901; makefile: 413; perl: 354; python: 164
file content (6 lines) | stat: -rw-r--r-- 214 bytes parent folder | download
1
2
3
4
5
6
#!/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