|
From: | L A Walsh |
Subject: | Re: find len of array w/name in another var...(bash 4.4.12) |
Date: | Tue, 20 Oct 2020 16:57:36 -0700 |
User-agent: | Thunderbird |
On 2020/10/20 01:29, Andreas Kusalananda Kähäri wrote:
In bash 4.3+, I would manke your "ar" variable a name reference variable instead: $ ar1=(1 2 3 44) $ declare -n ar=ar1 $ echo "${#ar[@]}" 4
Ya, I was trying to use the 'byname' feature for older/wider support...sigh
[Prev in Thread] | Current Thread | [Next in Thread] |