On 4/15/10 6:58 PM, Charles Duffy wrote: > The provided reproducer was unnecessarily complicated. The following also > reproduces the issue: > > function get_fd_count() { > local fds > cd /proc/$$/fd; fds=( * ) # avoid a StackOverflow source colorizer bug > echo "${#f...@]}" > } > > function fd_leak_func() { > while : ; do > echo ">> Current FDs: $(get_fd_count)" > read retval new_state < <(set +e; new_state=$(echo > foo); retval=$?; printf "%d %s\n" $retval $new_state) > done > } > > fd_leak_func > > > Running the contents of fd_leak_func at top level, by contrast, does not > reproduce the bug.
Thanks for the report. This will be fixed in the next release of bash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/