summaryrefslogtreecommitdiff
path: root/test/aux-fixed
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2014-10-24 11:12:20 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2014-10-24 11:12:20 +0100
commitb9c5223b77400cec8c44a8972a238f9cde82f0fc (patch)
tree5a4f44cc6ed5548c7130aa9f8aa805aa7d28bc58 /test/aux-fixed
parent8334b9b803393346e08706f7a5d435de510d3172 (diff)
Testsuite: more portable implementation of "showenv"
At least one Solaris installation seems not to have "whoami"
Diffstat (limited to 'test/aux-fixed')
-rwxr-xr-xtest/aux-fixed/showenv4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/aux-fixed/showenv b/test/aux-fixed/showenv
index a49833ada..5d9ef8f8a 100755
--- a/test/aux-fixed/showenv
+++ b/test/aux-fixed/showenv
@@ -3,8 +3,10 @@
# This script outputs certain information about the environment, for use when
# testing pipe transports.
+name=`whoami 2>/dev/null` || name=`who . . | awk '{print $1}'`
+
echo Test pipe script
-echo Running as: `whoami`
+echo Running as: $name
echo ------------------
echo Args:
while [ "$1" != "" ]; do