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

Large compound commands resulting in a segfault

2019-06-21 Thread
Hi, The following script generates a compound command consisting of many instances of the : command. I have found that it reproducibly induces a segfault in all versions of bash from 2 onwards. I tested various other shells - several more than are implied here - all of which could handle the g