[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File descriptor of process substitution unexpectedly persisting
From: |
Chet Ramey |
Subject: |
Re: File descriptor of process substitution unexpectedly persisting |
Date: |
Mon, 1 Jul 2019 15:13:52 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 6/21/19 2:58 PM, kfm@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
> ... etc
Thanks for the report. This will be fixed in the next devel branch push.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: File descriptor of process substitution unexpectedly persisting,
Chet Ramey <=