Bug 30595 - many scripts want "tempfile" instead of "mktemp"
Summary: many scripts want "tempfile" instead of "mktemp"
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: coreutils (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-23 17:58 MSK by Ivan Zakharyaschev
Modified: 2018-12-29 05:38 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.