From 5fae8b2c1ede890005a55067b1f6630b114f112d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 6 Apr 2010 17:33:51 +0200 Subject: [PATCH] init.sh: portability fix: use env's POSIX-specified -i option not -u * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather than unportable env -u. Solaris 5.11's env lacks support for -u. --- ChangeLog | 6 ++++++ tests/init.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8dca731a0..60fb41354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-06 Jim Meyering + + init.sh: portability fix: use env's POSIX-specified -i option not -u + * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather + than unportable env -u. Solaris 5.11's env lacks support for -u. + 2010-04-05 Bruno Haible btowc: Work around Cygwin 1.7.2 bug. diff --git a/tests/init.sh b/tests/init.sh index 3e3ea444f..9b6512922 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -306,7 +306,7 @@ mktempd_() fail=0 # First, try to use mktemp. - d=`env -u TMPDIR mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ + d=`env -i PATH="$PATH" mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ || fail=1 # The resulting name must be in the specified directory. -- 2.11.0