Re: Variables getting silently unset on redeclaration

2018-03-16 Thread Chet Ramey
On 3/15/18 10:30 PM, dtr@home.homenet wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > Variables mistakenly declared as local and then set as global > happen to be unset for the “nounset” option and known > to “declare -p” at the

Variables getting silently unset on redeclaration

2018-03-15 Thread dtr
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/s