Coproc Tutorial (2011)(zsh.org) |
Coproc Tutorial (2011)(zsh.org) |
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 .'Though I guess there's always nemo . >/dev/null 2>&1 &