Coproc Tutorial (2011)
zsh.org
Coproc Tutorial (2011)
1–8 of 8 posts
Re: Coproc Tutorial (2011)
#2Note that bash's version is slightly different but pretty close. Also, bash supports `lastpipe` nowadays so you don't have to use this as a workaround for that issue, and `< <()` is more often the useful thing for custom pipeline composability, and without suffering from the "only one coprocess may exist" limitation.
Re: Coproc Tutorial (2011)
#3I've never found a case where coproc actually solves a problem I'm facing. Note that bash's version is slightly different but pretty close. Also, bash supports `lastpipe` nowadays so you don't have to use this as a workaround for that issue, and `< <()` is more often the useful thing for custom pipeline composability, and without suffering from the "only one coprocess may exist" limitation.
coproc 'nemo .'Re: Coproc Tutorial (2011)
#4I've never found a case where coproc actually solves a problem I'm facing. Note that bash's version is slightly different but pretty close. Also, bash supports `lastpipe` nowadays so you don't have to use this as a workaround for that issue, and `< <()` is more often the useful thing for custom pipeline composability, and without suffering from the "only one coprocess may exist" limitation.
I use it to launch GUI apps from the terminal, e.g. coproc 'nemo .'
Re: Coproc Tutorial (2011)
#5I've never found a case where coproc actually solves a problem I'm facing. Note that bash's version is slightly different but pretty close. Also, bash supports `lastpipe` nowadays so you don't have to use this as a workaround for that issue, and `< <()` is more often the useful thing for custom pipeline composability, and without suffering from the "only one coprocess may exist" limitation.
Re: Coproc Tutorial (2011)
#6Earlier quoted context omitted.
I use it to launch GUI apps from the terminal, e.g. coproc 'nemo .'
Is that better than using ordinary job control (nemo . &) ?
Re: Coproc Tutorial (2011)
#7I've never found a case where coproc actually solves a problem I'm facing. Note that bash's version is slightly different but pretty close. Also, bash supports `lastpipe` nowadays so you don't have to use this as a workaround for that issue, and `< <()` is more often the useful thing for custom pipeline composability, and without suffering from the "only one coprocess may exist" limitation.