Re: Can not declare a local variable if an global ro-variable exists with the same name

2019-03-29 Thread Chet Ramey
On 3/27/19 9:06 AM, joerg...@snafu.de wrote: > Bash Version: 4.2 > Patch Level: 46 > Release Status: release > > Description: > If I declare a global read-only variable and I try to declare a local > variable with that name, I can not create > the local variable. > I expect tha

Re: Can not declare a local variable if an global ro-variable exists with the same name

2019-03-29 Thread Greg Wooledge
On Wed, Mar 27, 2019 at 02:06:51PM +0100, joerg...@snafu.de wrote: > If I declare a global read-only variable and I try to declare a local > variable with that name, I can not create > the local variable. > I expect that local variables can be declared independently for the > gl

Can not declare a local variable if an global ro-variable exists with the same name

2019-03-29 Thread joergboe
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'