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


Groups > gnu.bash.bug > #16227

nameref pointing to array element

From Daniel Molina <lluvia@autistici.org>
Newsgroups gnu.bash.bug
Subject nameref pointing to array element
Date 2020-04-23 00:05 +0200
Message-ID <mailman.1011.1587602841.3066.bug-bash@gnu.org> (permalink)
References <1cedb24c-8f75-3ee2-6d81-26b37ab0c63a@autistici.org>

Show all headers | View raw


Hello,

Is the following an intended behavior? Undefined? A bug?

$ a[1]=2; declare -n ref=a[1]; echo $ref $((ref))
2 0

Thanks,

Daniel

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


Thread

nameref pointing to array element Daniel Molina <lluvia@autistici.org> - 2020-04-23 00:05 +0200

csiph-web