Collin Funk wrote:
> Originally I thought that this was due to GNU getopt rearranging options
> or something, since I don't think NetBSD does that.

The cause appears to be that for GNU mktemp, the -t option does not take an
argument [1]; likewise for OpenBSD mktemp [2] and Solaris mktemp [3].

Whereas for FreeBSD and NetBSD mktemp, the -t option takes an argument [4][5].

Since POSIX does not specify mktemp(1), neither of the two is "right" or
"wrong". We just have to live with both.

Bruno

[1] https://linux.die.net/man/1/mktemp
[2] https://man.openbsd.org/mktemp.1
[3] https://docs.oracle.com/cd/E88353_01/html/E37839/mktemp-1.html
[4] https://man.freebsd.org/cgi/man.cgi?mktemp(1)
[5] https://man.netbsd.org/mktemp.1




Reply via email to