summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--regress/percent.sh5
-rw-r--r--regress/test-exec.sh8
2 files changed, 8 insertions, 5 deletions
diff --git a/regress/percent.sh b/regress/percent.sh
index 44561d413..354854f97 100644
--- a/regress/percent.sh
+++ b/regress/percent.sh
@@ -3,11 +3,6 @@
tid="percent expansions"
-if [ -x "/usr/xpg4/bin/id" ]; then
- PATH=/usr/xpg4/bin:$PATH
- export PATH
-fi
-
USER=`id -u -n`
USERID=`id -u`
HOST=`hostname | cut -f1 -d.`
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index ad627941f..f4c363d84 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -392,6 +392,7 @@ have_prog()
jot() {
awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
}
+
if [ ! -x "`which rev`" ]; then
rev()
{
@@ -399,6 +400,13 @@ rev()
}
fi
+if [ -x "/usr/xpg4/bin/id" ]; then
+id()
+{
+ /usr/xpg4/bin/id
+}
+fi
+
# Check whether preprocessor symbols are defined in config.h.
config_defined ()
{