Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: kill the LHS command of a pipe once the RHS command terminates
On 2019-06-28 13:04:30 +0200, Vincent Lefevre wrote:
> * With a process substitution:
>
> zira% head -n 1 <(echo foo; sleep 3; echo err >&2)
> foo
> zira%
Another issue is that if the producer side tries to access the terminal
(e.g. ssh, for a passphrase), all the processes of this side are stopped
due to a SIGTTOU signal.
Concerning the documentation, the zshexpn(1) man page does not say
that a process in process substitution is run in background. Later
there's a mention of it being run asynchronously, but this term has
never been defined.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author