Re: >&"$var" broken in declare -f and exported functions

2022-06-06 Thread Chet Ramey
On 6/3/22 11:18 AM, Namikaze Minato wrote: Bash Version: 5.1 Patch Level: 16 Release Status: release Description: Output redirections to variable file descriptors inside functions lead to incorrect representation (declare -f). Breaking exported functions. Reproductible with all bash versi

Re: BASH recursion segfault, FUNCNEST doesn't help

2022-06-06 Thread Chet Ramey
On 6/2/22 4:00 PM, Gergely wrote: I could not produce a scenario in 15 minutes that would indicate that this corrupts other sections, as there is a considerable gap between the stack and everything else. This is OS-dependent though and bash has no control over what happens should this occur. B

Re: BASH recursion segfault, FUNCNEST doesn't help

2022-06-06 Thread Chet Ramey
On 6/1/22 4:49 PM, Gergely wrote: Hi, I stumbled upon a recursion overflow crash in BASH. It affects both my Debian machine (this report), as well as the latest stable built from source. Yes, you created an infinitely recursive script. It's a race to see whether you exceed your stack or VM re

Re: >&"$var" broken in declare -f and exported functions

2022-06-06 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-06-06 05:31, Namikaze Minato wrote: On Fri, 3 Jun 2022 at 23:24, Alexey wrote: As I can see, problem exist only if we quote "$foo". Without quotes everything looks fine. Hello Alexey. Thank you for the workaround of removing the quotes. And sorry for my being late to answer. Hell