X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/42ec98804ba4473673997d013f03309dc3e1972d..6f47da8d2d526953e8e6403f448d1598c9140df1:/test/aux-fixed/showenv diff --git a/test/aux-fixed/showenv b/test/aux-fixed/showenv index fc377cc8b..69c8ee006 100755 --- a/test/aux-fixed/showenv +++ b/test/aux-fixed/showenv @@ -3,7 +3,9 @@ # This script outputs certain information about the environment, for use when # testing pipe transports. -name=`id -un` +cmd=/usr/xpg4/bin/id +[ -x $cmd ] || cmd=id +name=`$cmd -un` echo Test pipe script echo Running as: $name @@ -14,7 +16,8 @@ while [ "$1" != "" ]; do shift done echo ----------current----------- -pwd +# strip trailing / from pwd result +d=`pwd`/dummy; dirname $d echo ----------env----------- echo A=$A echo B=$B