in reply to Re: Generating a readline error
in thread Generating a readline error

You're misreporting eof as an error.