From: Jeremy Harris Date: Fri, 24 Oct 2014 10:12:20 +0000 (+0100) Subject: Testsuite: more portable implementation of "showenv" X-Git-Tag: exim-4_85_RC1~35 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b9c5223b77400cec8c44a8972a238f9cde82f0fc;p=exim.git Testsuite: more portable implementation of "showenv" At least one Solaris installation seems not to have "whoami" --- 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