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

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.

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

2022-06-05 Thread Lawrence Velázquez
On Sun, Jun 5, 2022, at 9:31 PM, Namikaze Minato wrote: > @everyone, please let me know if I need to do something else to > actually report the bug or if this thread is enough. This thread is enough. -- vq

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

2022-06-05 Thread Namikaze Minato
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. > > > As a special case, if n is omitted, and word does not expand to one or > > more digits or -, the standard output and standard error are redirected > >

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

2022-06-03 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-06-03 19:18, Namikaze Minato wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -march=native -O2 uname output: Linux ns3012044.ip-37-187-96.eu 4.9.120--std-ipv6-64 #327490 SMP

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

2022-06-03 Thread Namikaze Minato
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -march=native -O2 uname output: Linux ns3012044.ip-37-187-96.eu 4.9.120--std-ipv6-64 #327490 SMP Thu Aug 16 10:11:35 UTC 2018 x86_64 Intel(R)