[HN Gopher] Coproc Tutorial (2011)
___________________________________________________________________
Coproc Tutorial (2011)
Author : 0x45696e6172
Score : 13 points
Date : 2023-12-31 11:34 UTC (1 days ago)
(HTM) web link (www.zsh.org)
(TXT) w3m dump (www.zsh.org)
| o11c wrote:
| I'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.
| 0x45696e6172 wrote:
| I use it to launch GUI apps from the terminal, e.g.
| coproc 'nemo .'
___________________________________________________________________
(page generated 2024-01-01 23:00 UTC)