# 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
shift
done
echo ----------current-----------
-pwd
+# strip trailing / from pwd result
+d=`pwd`/dummy; dirname $d
echo ----------env-----------
echo A=$A
echo B=$B