On 13 Jan 2014, at 13:04, Michael J. Forster <mike@sharedlogic.ca> wrote:
On 14-01-13 12:27 AM, Sven Van Caekenberghe wrote: [...]
It might be needed for portability, but who says "those platforms aren't implementing mktemp(3) exactly", against which spec ?
Hi Sven,
It's the library function mktemp(3), not the command mktemp(1), that specifies the template length, and it conforms to both BSD and POSIX:
http://man7.org/linux/man-pages/man3/mktemp.3.html http://www.openbsd.org/cgi-bin/man.cgi?sektion=3&query=mktemp
Accordingly, "mktemp -d foo.XXXXXX" should work on all POSIX/BSD platforms, and it does on my various FreeBSD, OpenBSD, Slackware, and Ubuntu boxes. Likewise, "mktemp -d foo.XXXXX" _could_ fail, and it does on three of my boxes.
OK, than we better change the script. Camillo, where do we change this best ?
Cheers,
Mike
-- Michael J. Forster, B.Sc. (Hons.), B.Sc. COO, Programmer Shared Logic Inc.