summaryrefslogtreecommitdiffstats
path: root/tests/nameref9.sub
blob: e76c21b86b13cf51c63dc33b7b1838aa8c07b6d5 (plain)
1
2
3
4
5
6
7
8
arr=( idx1 idx2 )
i='arr[1]'
echo ${!i}
echo ${!i/x/X}

typeset -n f='arr[1]'
echo ${f}
echo ${f/x/X}