Am 26.11.2009 01:47, schrieb Chet Ramey:
Bernd Eggink wrote:
GNU bash, version 4.0.35(1)-release (i686-pc-linux-gnu)

The following syntactically wrong declaration causes a segmentation fault:

     declare -A x=y

It should issue an error message instead.

It's not actually a syntax error.

Hm, but the man page says, "Indexed array assignments do not require the bracket and subscript." This sounds like the syntax above is valid for indexed arrays, but not for associative arrays. Maybe the documentation should be corrected then.

Bernd

--
Bernd Eggink
http://sudrala.de


Reply via email to