> To stay in line with the original post, readline is very easy to use in
> Ruby:

I'm not having a problem using the features that ruby's readline
provides. The problem is the ruby implementation does not deal well
with spaces. The text returned by the completion function is anything
from the last space onwards, instead of the entire line.