|
From: | Grisha Levit |
Subject: | mapfile creates poorly-named array if passed nameref to array subscript |
Date: | Wed, 1 Jun 2016 18:19:15 -0400 |
$ declare -n ref=XXX[0]; mapfile ref <<< $'1\n2'; declare -p XXX[0]
declare -a XXX[0]=([0]=$'1\n' [1]=$'2\n')
maybe makes sense to check for legal identifier before making the array?
[Prev in Thread] | Current Thread | [Next in Thread] |