[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About using COPROC
From: |
Marco Ippolito |
Subject: |
Re: About using COPROC |
Date: |
Fri, 2 Apr 2021 18:11:48 -0300 |
> But if I run the following script. I don't quite understand why the
> following does not work but the previous one works? Could anybody help
> explain coproc?
The coproc ends and the file descriptors are closed. The array is unset.
You are _racing_ your coproc.
Try adding a `sleep` inside the coproc command group, before `seq`.
Does it work then?