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


Groups > gnu.bash.bug > #16243

Re: Variable references (declare -n, "nameref") are limited to a depth of 8.

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Variable references (declare -n, "nameref") are limited to a depth of 8.
Date 2020-04-25 16:21 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.1244.1587846090.3066.bug-bash@gnu.org> (permalink)
References <courier.000000005EA3DECF.0000B702@charon.podzimek.org> <09fac3bd-2d96-c0ee-ac03-f729507af74a@case.edu>

Show all headers | View raw


On 4/25/20 2:55 AM, andrej--- via Bug reports for the GNU Bourne Again
SHell wrote:

> Bash Version: 5.0
> Patch Level: 16
> Release Status: release
> 
> Description:
> 
>   While looking for a way to share a "cache" array with a recursive function
>   call stack (using local -n (nameref)), I hit a well-known problem with
>   "circular name reference" (which has been around for a long time). 

Yes, that's how it does loop detection.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

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


Thread

Re: Variable references (declare -n, "nameref") are limited to a depth of 8. Chet Ramey <chet.ramey@case.edu> - 2020-04-25 16:21 -0400

csiph-web