thank you for the insight, it's very helpful!
On Oct 28, 2016 10:01 AM, "Chet Ramey" wrote:
On 10/20/16 2:45 PM, kjk...@gmail.com wrote:
> set -x
>
> var_123=123
> f() {
> while (( $# )); do
> shift
> local var=var_123
> local -n var=$var; : status is $?
> loc
Thanks for replying.
I was expecting that in the second iteration of the loop, the
local var=var_123 command would make var a normal variable again with
value "var_123"
and then the local -n var=$var would make var again a nameref to var_123.
This seems
to be the behavior of Bash 4.3.
But anyway