[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable references (declare -n, "nameref") are limited to a depth o
Re: Variable references (declare -n, "nameref") are limited to a depth of 8.
Sat, 25 Apr 2020 16:21:22 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0
On 4/25/20 2:55 AM, andrej--- via Bug reports for the GNU Bourne Again
> Bash Version: 5.0
> Patch Level: 16
> Release Status: release
> 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 address@hidden http://tiswww.cwru.edu/~chet/