Re: [dev] announcing edit-pipe

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Mon, 28 Aug 2017 07:43:51 +0200

On 27 August 2017 at 20:16, Greg Reagle <greg.reagle_AT_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
Received on Mon Aug 28 2017 - 07:43:51 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 28 2017 - 07:48:16 CEST