X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Faux-fixed%2Fshowenv;h=69c8ee006b44fa46dfa736edb995eaa388924910;hb=a9ac2d7fc219e41a353abf1f599258b9b9d21b7e;hp=a49833adab3d9d0e201eeae3a2cea405c8a3c6fd;hpb=9ba4af2b76958e076a0c002e53ead87ed7a47a68;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/test/aux-fixed/showenv b/test/aux-fixed/showenv index a49833ada..69c8ee006 100755 --- a/test/aux-fixed/showenv +++ b/test/aux-fixed/showenv @@ -3,8 +3,12 @@ # This script outputs certain information about the environment, for use when # testing pipe transports. +cmd=/usr/xpg4/bin/id +[ -x $cmd ] || cmd=id +name=`$cmd -un` + echo Test pipe script -echo Running as: `whoami` +echo Running as: $name echo ------------------ echo Args: while [ "$1" != "" ]; do @@ -12,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