]> 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 14:57:34 +0000 (16:57 +0200)
commitc7cd1e4f0d24a4b949ef3e1e41c11cccfce0ccb8
tree7a31f5c30b6184116a06be51d300b76aead53392
parent87118ffa9494e167cfab056060bbefb7757e6e9c
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