]> 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)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Jun 2024 22:11:27 +0000 (15:11 -0700)
commit5c2e65d9c7605bb9a10cc28e532d39faf857cb5e
tree6a8987b88e1facec0cfc12e194dce91365e635fa
parent76bf71f73718a08b2c72f3d8106e8fdb840b4f58
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