Re: Variable with the same name can't be declared in the local scope if the global one is declared read-only

2020-11-15 Thread Buo-ren , Lin
Thanks for your information, I do recognize the fact after researching further regarding this issue, I should probably do it beforehand, I guess. Cheers, 林博仁(Buo-ren, Lin)

Variable with the same name can't be declared in the local scope if the global one is declared read-only

2020-11-15 Thread Buo-ren , Lin
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-a6qmCk/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parent heses -Wno-format-security uname ou

Re: Non-empty associative array considered not-set by -v test

2017-05-27 Thread
Thanks for the explanation. 林博仁

Non-empty associative array considered not-set by -v test

2017-05-27 Thread
Hi, please consider the following script: ``` declare -ar indexed_array=(1 2 3) declare -ar indexed_array_null=() declare -Ar associative_array=(\ ["apple"]="1" \ ["banana"]="2" \ ) declare -Ar associative_array_null=() for parameter in indexed_array indexed_array_null associative_array associat