illumos-port-bash/tests/nameref9.sub

9 lines
102 B
Plaintext

arr=( idx1 idx2 )
i='arr[1]'
echo ${!i}
echo ${!i/x/X}
typeset -n f='arr[1]'
echo ${f}
echo ${f/x/X}