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

Re: Speaking of "coproc" ...



Bart Schaefer wrote:
>How does one close the input to the coproc, so as to send it an end-of-file?
>The only thing I've come up with is "coproc exit" which seems rather silly
>and which closes both the input and the output.

Coprocesses are a bit of a mess.  I'd like to make it possible to attach
the coprocess to specified fd numbers, just like file redirections,
so that one could close either pipe with the ">&-" syntax.  This would
also make it possible to have multiple independent coprocesses.  To do
this properly I think we'd need an extended redirection syntax, to allow
redirecting file descriptors of more than one digit; perhaps we could
do something like the rc syntax?

-zefram



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