diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2014-10-24 11:12:20 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2014-10-24 11:12:20 +0100 |
commit | b9c5223b77400cec8c44a8972a238f9cde82f0fc (patch) | |
tree | 5a4f44cc6ed5548c7130aa9f8aa805aa7d28bc58 | |
parent | 8334b9b803393346e08706f7a5d435de510d3172 (diff) |
Testsuite: more portable implementation of "showenv"
At least one Solaris installation seems not to have "whoami"
-rwxr-xr-x | test/aux-fixed/showenv | 4 |
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 |