>On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik at Sun.COM wrote: >> >> >/usr/bin already has an mktemp. How does it differ from the GNU >> >version? Ah, there's an option conflict, sadly (-u is "--dry-run" in >> >GNU, but "unsafe operation" in Solaris). >> >> Solaris' mktemp takes after the OpenBSD mktemp. > >What is the point of the Solaris mktemp(1) -u option though? Why would >anyone choose "unsafe operation"?
It came from OpenBSD. I can understand the reason, though, you can't always want to create a file, you may want an unique value: unique=$(mktemp -u XXXXXX) Casper