in reply to Re: A way to avoid repeated conditional loopsin thread A way to avoid repeated conditional loops
You can't rely on readline returning EOF or errors more than once.