Some shells set $_ to an absolute path.

This commit is contained in:
Guus Sliepen 2013-09-01 15:40:59 +02:00
parent 05a7f0b2fb
commit 1cdb0c21d4

View file

@ -8,9 +8,18 @@ sptps_test=../src/sptps_test
# Test directories
d1=$PWD/$_.1
d2=$PWD/$_.2
d3=$PWD/$_.3
case "$_" in
/*)
d1=$_.1
d2=$_.2
d3=$_.3
;;
*)
d1=$PWD/$_.1
d2=$PWD/$_.2
d3=$PWD/$_.3
;;
esac
# Remove test directories