Exit editLine on an EOF.
Move the per loop stuff into the do command stuff.  Much saner.