> Already reported:
>
> * test -v: http://lists.gnu.org/archive/html/bug-bash/2014-11/msg00099.html
> * declare -p arrname: 
> https://lists.gnu.org/archive/html/bug-bash/2012-11/msg00084.html

The second thread is about something completely different as I
understand it.
It is about variables whose values aren't explicitly assigned a value.

Here:

        # OK
        $ x() { declare -a var=(); declare -p var; }; x
        declare -a var='()'
        # not OK
        $ y() { declare -a var='()'; declare -p var; }; y
        bash: declare: var: not found

in both cases a value is assigned, yet the shell behaves differently in the 
second one.


Reply via email to