Re: Integer (re)declaration keeps string values

2020-07-22 Thread Lawrence Velázquez
> On Jul 22, 2020, at 4:12 AM, andrej--- via Bug reports for the GNU > Bourne Again SHell wrote: > > Description: > Integer variables don't get (re)parsed when (re)declared. > > Repeat-By: > a=z >declare -i a >echo $a # z (I'd expect emptiness or 0) The man page exp

Integer (re)declaration keeps string values

2020-07-22 Thread andrej--- via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/ba