Re: File descriptor of process substitution unexpectedly persisting

2019-07-01 Thread Chet Ramey
On 6/21/19 2:58 PM, k...@plushkava.net wrote: > However, merely by assigning a variable prior to the loop, though within the > same line, the number will continuously grow: > > $ var=0; while :; do { read; } < <(:); sleep 0.5; printf %s\\n > /proc/self/fd/* | wc -l; done > 6 > 7 > 8 > 9 > 10 >

File descriptor of process substitution unexpectedly persisting

2019-06-21 Thread
Hi, As tested interactively with bash 5.0.7(1) and GNU/Linux, the following command prints a constant number of active file descriptors, as expected: $ while :; do { read; } < <(:); sleep 0.5; printf %s\\n /proc/self/fd/* | wc -l; done 6 6 6 6 6 ... etc However, merely by assigning a variable