[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] init.sh: portability fix: use env's POSIX-specified -i option no
From: |
Jim Meyering |
Subject: |
[PATCH] init.sh: portability fix: use env's POSIX-specified -i option not -u |
Date: |
Tue, 06 Apr 2010 17:36:01 +0200 |
FYI,
I noticed unnecessary mktemp simulation in test logs on Solaris 5.11.
This fixes it:
>From 5fae8b2c1ede890005a55067b1f6630b114f112d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
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 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8dca731..60fb413 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-06 Jim Meyering <address@hidden>
+
+ 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 <address@hidden>
btowc: Work around Cygwin 1.7.2 bug.
diff --git a/tests/init.sh b/tests/init.sh
index 3e3ea44..9b65129 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.
--
1.7.0.4.552.gc303
- [PATCH] init.sh: portability fix: use env's POSIX-specified -i option not -u,
Jim Meyering <=