A different point here: If es detected an eof during read (and NOT in the top level parse loop) from the controlling terminal, it would be nice if it (1) returned an empty list, and (2) reopened the tty so the parse loop doesn't also get the eof, thereby killing the shell off. - Harald