[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suppress `warning: execute_coproc: coproc [40158:xxx] still exists`
From: |
Peng Yu |
Subject: |
Suppress `warning: execute_coproc: coproc [40158:xxx] still exists` |
Date: |
Fri, 2 Apr 2021 18:01:51 -0500 |
Hi,
I see the following warning. Is there a way to suppress it? Thanks.
./main2.sh: line 11: warning: execute_coproc: coproc [40175:name1] still exists
$ cat ./main2.sh
#!/usr/bin/env bash
coproc name1 {
seq 3
}
exec {fd1}<&"${name1[0]}"
coproc name2 {
seq 4 6
}
exec {fd2}<&"${name2[0]}"
sleep 1
while IFS=$'\t' read -r -u "$fd1" line; do
builtin printf '%s\n' "$line"
done
while IFS=$'\t' read -r -u "$fd2" line; do
builtin printf '%s\n' "$line"
done
$ ./main2.sh
./main2.sh: line 11: warning: execute_coproc: coproc [40175:name1] still exists
1
2
3
4
5
6
--
Regards,
Peng
- Suppress `warning: execute_coproc: coproc [40158:xxx] still exists`,
Peng Yu <=