1) In the outer loop condition,
Quote:
while (%current.x != %d.x && %current.y != %d.y) {
I'm sure you'll want to use OR instead of AND here, otherwise the algorithm will stop as soon as it hits the row or column that the end position is in (as opposed to the end position itself).
10q @Sat ... that was the problem

if i ever met u ... u've got a beer from me

just one more question ....
when i use parametrized functions ... line $zzz(aaa,bbb)
I must echo them ... otherwise an error appears ...
using .echo $func() in the upper script doesn't help ... an error continued to occure ... what to do ?
