File: setup-tempfile

package info (click to toggle)
dialog 1.3-20260107-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,588 kB
  • sloc: ansic: 19,122; sh: 8,420; perl: 766; makefile: 457; 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