Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
-fstack-clash-protection -Werror=return-type -flto=auto -g  -D_GNU_SOURCE 
-DRECYCLES_PIDS -Wall -g -Wuninitialized -Wextra -Wno-switch-enum 
-Wno-unused-variable -Wno-unused-parameter -Wno-parentheses -ftree-loop-linear 
-pipe -DBNC382214=0 -DIMPORT_FUNCTIONS_DEF=0 
-DDEFAULT_LOADABLE_BUILTINS_PATH='/usr/lib64/bash'
uname output: Linux pluto 6.12.8-1-default #1 SMP PREEMPT_DYNAMIC Thu Jan  2 
12:47:33 UTC 2025 (ab2dfe6) x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-suse-linux-gnu

Bash Version: 5.2
Patch Level: 37
Release Status: release

Description:
        [Assignments to variables with attribute 'integer' behave unexpectedly 
if the right side has not an integer value.
        It seems that the value is interpreted as a variable name and expansion 
is done recursively.
        This is not what I would expect.]

Repeat-By:
        [
        > aa=123456
        > x=aa
        > declare -i i=x
        > echo $i
        123456
        ]



  • [Assignements t... joergboe--- via Bug reports for the GNU Bourne Again SHell

Reply via email to