I don't even see why we need a magic variable for this. ksh makes you
manually store $! and bash also allows this.

As an alternative, create a special BASH_COPROC_PIDS associative array
to map coproc names to pids. ${foo}_suffix=bar is never as good as an
associative array.

Reply via email to