File: setup-tempfile

package info (click to toggle)
dialog 1.3-20230209-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,484 kB
  • sloc: ansic: 18,977; sh: 7,748; perl: 766; makefile: 435; python: 164
file content (6 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
#!/bin/sh
# $Id: setup-tempfile,v 1.5 2021/11/07 23:32:40 tom Exp $
# vile:shmode

tempfile=`(mktemp) 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_QUIT $SIG_TERM