Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16602

Integer (re)declaration keeps string values

From andrej@podzimek.org
Newsgroups gnu.bash.bug
Subject Integer (re)declaration keeps string values
Date 2020-07-22 10:12 +0200
Message-ID <mailman.317.1595405548.24492.bug-bash@gnu.org> (permalink)
References <courier.000000005F17F4DE.000F3004@charon.podzimek.org>

Show all headers | View raw


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/bash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS -Wno-parentheses -Wno-format-security
uname output: Linux charon 5.6.15-arch1-1-user-regd #1 SMP PREEMPT Sat, 30 May 2020 12:13:36 +0000 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 17
Release Status: release

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)

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Integer (re)declaration keeps string values andrej@podzimek.org - 2020-07-22 10:12 +0200

csiph-web