]> Savannah Git Hosting - gnulib.git/commit
mktempd: use GNU-style -t if available
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Jun 2024 22:09:55 +0000 (15:09 -0700)
committerBruno Haible <bruno@clisp.org>
Thu, 13 Jun 2024 15:05:36 +0000 (17:05 +0200)
commit500aac04d41967c2771b08d765d5c64c64a0e775
tree2f2c6c91278d0c48986c183bc5dc04ed4efba3d6
parent31b8f83d8f12fd06a4086bdb2e42a7bbb3b4f172
mktempd: use GNU-style -t if available

This better satisfies Jim Meyering’s point in:
https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00074.html
that it’s more useful when each temporary test directory name
includes the corresponding test’s name.
* build-aux/mktempd: Try mktemp -t only with GNU syntax, so that
NetBSD mktemp fails.  Also, reject templates beginning with "-" so
that they are not treated as options.
* tests/init.sh (mktempd_): Likewise.
ChangeLog
build-aux/mktempd
tests/init.sh