|
From: | Bernd Eggink |
Subject: | Re: Wrong 'declare -A' causes segfault |
Date: | Thu, 26 Nov 2009 10:29:03 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |