gzexe: port to macOS mktemp
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jan 2018 22:59:47 +0000 (14:59 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jan 2018 23:02:02 +0000 (15:02 -0800)
commit63aa2268a5abfed0116d04bbe3952e4a753af91d
tree5e04f5cf72d52168a57bd6fdbd641bae4a405f6c
parent975508caa09d733099498ff9f7b8079cd71d7109
gzexe: port to macOS mktemp

Problem reported by Jeffrey Walton (Bug#30000).
* gzexe.in, zdiff.in, zgrep.in:
Don’t assume that mktemp works when given no arguments,
as this is not true for macOS.  Instead, use a syntax
that should work with coreutils, NetBSD, and macOS.
While we’re in the neighborhood, be more consistent about how program
names are used in temporary file names.  Also, watch out for TMPDIR
values that are not absolute file names, since they can cause problems
(e.g., leading "-").
gzexe.in
zdiff.in
zgrep.in