changeset 13180:bc05d5eb950e

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.
author Jim Meyering <meyering@redhat.com>
date Tue, 06 Apr 2010 17:33:51 +0200
parents a0eb411c9abc
children e679e2ee2308
files ChangeLog tests/init.sh
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 06 00:30:28 2010 +0200
+++ b/ChangeLog	Tue Apr 06 17:33:51 2010 +0200
@@ -1,3 +1,9 @@
+2010-04-06  Jim Meyering  <meyering@redhat.com>
+
+	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  <bruno@clisp.org>
 
 	btowc: Work around Cygwin 1.7.2 bug.
--- a/tests/init.sh	Tue Apr 06 00:30:28 2010 +0200
+++ b/tests/init.sh	Tue Apr 06 17:33:51 2010 +0200
@@ -306,7 +306,7 @@
   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.