Script/console and IRB readline failure

Long input lines are confusing the readline on my script/console and irb
sessions. I hit
back-arrow and suddenly the cursor goes up to the next line. Thereafter
the previous-line
fails to work, giving me just an ampersand (&) instead of the previous
line to re-edit.

WinXP SP2.

Warren Fred