From b9c5223b77400cec8c44a8972a238f9cde82f0fc Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 24 Oct 2014 11:12:20 +0100 Subject: Testsuite: more portable implementation of "showenv" At least one Solaris installation seems not to have "whoami" --- test/aux-fixed/showenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3