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


Groups > gnu.bash.bug > #16602

Integer (re)declaration keeps string values

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From andrej@podzimek.org
Newsgroups gnu.bash.bug
Subject Integer (re)declaration keeps string values
Date Wed, 22 Jul 2020 10:12:14 +0200
Lines 20
Approved bug-bash@gnu.org
Message-ID <mailman.317.1595405548.24492.bug-bash@gnu.org> (permalink)
References <courier.000000005F17F4DE.000F3004@charon.podzimek.org>
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1595405549 18050 209.51.188.17 (22 Jul 2020 08:12:29 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Received-SPF pass client-ip=2a02:168:5cd0::; envelope-from=andrej@podzimek.org; helo=charon.podzimek.org
X-detected-operating-system by eggs.gnu.org: First seen = 2020/07/22 04:12:17
X-ACL-Warn Detected OS = ???
X-Spam_score_int -10
X-Spam_score -1.1
X-Spam_bar -
X-Spam_report (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <courier.000000005F17F4DE.000F3004@charon.podzimek.org>
Xref csiph.com gnu.bash.bug:16602

Show key headers only | 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