Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: interact



Anthony.Iano-Fletcher@xxxxxxxxxxxxxxxx wrote:
> I recieved no response to my question about how to turn control
> over to a user for an interactive session part way through running
> a zsh script, in the same way that you can in the expect language.

It's currently impossible to do this properly since there's no way of
changing the `interactive' option.  In principle, you could move the
setting of the interactive option into the code I just adapted to be
run both when the shell starts up and after `exec <...', which already
checks for a tty.  You probably have to wait a bit for that code to
show up.

-- 
Peter Stephenson <P.Stephenson@xxxxxxxxxxxxx>  Tel: +44 1792 205678 extn. 4461
WWW:  http://python.swan.ac.uk/~pypeters/      Fax: +44 1792 295324
Department of Physics, University of Wales, Swansea,
Singleton Park, Swansea, SA2 8PP, U.K.



Messages sorted by: Reverse Date, Date, Thread, Author