Re: Cannot shadow local -r when assigning local to array in declaration

2020-04-27 Thread Chet Ramey
On 4/23/20 8:02 PM, Ross Goldberg wrote: > Bash Version: 5.0 > Patch Level: 16 > Release Status: release > > Description: > If a function, f, declares a local readonly variable, v, using local -r, an > error occurs if f calls another function, g, that declares its own local > variable v (therefor

Cannot shadow local -r when assigning local to array in declaration

2020-04-23 Thread Ross Goldberg
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin19.3.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC -Wno-parentheses -Wno-format-security uname output: Darwin Thrawn.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; roo