On 27 August 2017 at 20:16, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sun, Aug 27, 2017, at 13:48, Thomas Levine wrote:
>> * mktemp is not portable; you could use something like the date and
>>   process identifier ($$) to create a portable temporary file.
>>   (I am actually still curious as to whether there is a reasonable
>>   portable approach that is less sloppy than this.)
>
> I'm not sure the best way to do that or if it's worth the extra
> complication.  It is unfortunate that POSIX doesn't have mktemp or a
> command to do the same thing.  However, mktemp seems to be very widely
> available.  It is in GNU coreutils (i.e. Gnu/Linux), OpenBSD, NetBSD,
> FreeBSD, Mac OS X, HP-UX, Tru64 Unix.

I would not bother about some exotic portability issues with mktemp.

-Anselm

Reply via email to