bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

install-sh and $RANDOM


From: coypu
Subject: install-sh and $RANDOM
Date: Mon, 17 Oct 2016 20:58:00 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

Hi,

in build-aux/install-sh scriptversion=2016-01-11.22 line 327
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
... things which are spuriously bad if $RANDOM does not exist ...

Please use something like:
tmpdir=$(mktemp -d -p ${TMPDIR:-/tmp})

Note also :

NetBSD /bin/sh does not have $RANDOM.
I don't know how portable mktemp is. sorry.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]