FWIW, namerefs in the temporary environment bypass the implemented checks:

    $ declare -n ref=var[0]
    $ ref=X printenv 'var[0]'
    X

Reply via email to