Peter Stephenson wrote :
On Fedora Core 5, however, this gives me I said foo zsh: write error: bad file descriptor
What a pity :-(
In summary, you can get what you want with:
(
coproc {
<foo code here>
}
exec 1>&p 0<&p
<bar code here>
)
Thank you very much, that's exactly what I needed :-) -- Guillaume