$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 是一个 支持 $COPROC 的 Bash 集成开发工具 – 马上试用!