Bug 30595

Summary: many scripts want "tempfile" instead of "mktemp"
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: coreutilsAssignee: placeholder <placeholder>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2014-12-23 17:58:07 MSK
coreutils-8.21-alt1

I met several scripts which want "tempfile". Perhaps, a convenience compatibility wrapper around "mktemp" could be provided to make using such scripts easy.

For example, /usr/bin/cpif from http://ftp.de.debian.org/debian/pool/main/n/noweb/noweb_2.11b-8_i386.deb or http://www.cs.tufts.edu/~nr/noweb/nowebm-2.11a-2.i386.rpm from http://www.cs.tufts.edu/~nr/noweb/ :

new=$(tempfile)
trap 'rm -f $new; exit 1' 1 2 15	# clean up files

....

Probably, "tempfile" is a Debian convention.
Comment 1 Dmitry V. Levin 2018-12-29 05:38:52 MSK
According to https://manpages.debian.org/jessie/debianutils/tempfile.1.en.html
tempfile has already been deprecated in Debian at the time when this request was submitted.

I don't think we really need this deprecated utility.