tmpfile="$(mktemp "${TMPDIR:-/tmp}"/"$(basename "$0")".XXXXXX)" || tmpfile=/tmp/test$$
trap 'rm -f "$tmpfile"' EXIT HUP INT TERM
