$COPROC
–
Coprocess File Descriptors
$COPROC
is the default variable name used by coproc
to store file descriptors of a coprocess.
${COPROC[0]}
is a file descriptor, which is connected to STDOUT
of the executed command.
${COPROC[1]}
is connected to STDIN
of the executed command.
Links
BashSupport Pro is a Bash IDE with support for $COPROC – try it now!