[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read in es



> >> (2) reopened the tty so the
> >> parse loop doesn't also get the eof, thereby killing the shell off.
> >
> >i don't think i had intended it to do this.  does anyone expect that
> >result?

> This is already a problem in es that makes implementing something like
> "ignoreeof" hard or impossible to implement.  I tried things like reopening
> fd 0 by doing
>       exec { < /dev/tty }
> in the eof handler but the REPL still keeps getting eof exceptions forever
> afterward.

gosh, i've always hated csh's ignoreeof so much that it never occured to
me to try to make it work in es.  the problem with the exec/redirection
approach is that the input routines used in %parse explicitly ignore
redirections.  (we had this discussion with Donn Cave as a major participant
back around the time of the 0.74 release.)

> Any ideas how to work around this?

try something like

	%interactive-loop < /dev/tty

but i don't make any promises.  i'll look into it.

paul