trim command sometimes "cut" the wrong side

#1
I have now upgraded from 6.19 to 6.20 PE. I still found, that the trim command sometimes cut off the wrong section of a polyline. I saw this behavior also in the previous version.

I also recognize, that the script command works not well. If I try to run a small script do draw a polyline given by external data like the following, the script just draw nonsense.

PLINE 0.0000,0.0000 w 0 0
-73.8462,-69.5059
-72.0000,-69.5059
-70.1538,-68.5981
-68.3077,-73.9232
-66.4615,-66.8719


...
1152.0000,-70.6114
1153.8462,-69.5077
1155.6923,-77.4771
1157.5385,-70.3221


There are no blanks after every line, so it should work ….
...and draw a polyline from 0,0 with the width 0 over all the given data points.

Any Ideas?

best regards

Karlheinz