Re: declare [-+]n behavior on existing (chained) namerefs
From:
Grisha Levit
Subject:
Re: declare [-+]n behavior on existing (chained) namerefs
Date:
Sat, 30 Apr 2016 16:24:58 -0400
I just re-built bash-20160415 snapshot and am observing the same behavior. To clarify, the first case is the unexpected one -- shouldn't `declare -n ref=var; declare -n ref' be a no-op, no matter if $var is set or not? It is a no-op when in global scope, but not inside a function.