TFO: even in binary built for modern Linux, handle error returned by old Linux kernel...
[users/jgh/exim.git] / test / aux-fixed / showenv
index 2d46eefb77a83fe607beea9694bd9073ceca61af..69c8ee006b44fa46dfa736edb995eaa388924910 100755 (executable)
@@ -16,7 +16,8 @@ while [ "$1" != "" ]; do
   shift
 done
 echo ----------current-----------
   shift
 done
 echo ----------current-----------
-pwd
+# strip trailing / from pwd result
+d=`pwd`/dummy; dirname $d
 echo ----------env-----------
 echo A=$A
 echo B=$B
 echo ----------env-----------
 echo A=$A
 echo B=$B