7 Bug-Reported-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
8 Bug-Reference-ID: <CAGOxLdHcSQu3ck9Qy3pRjj_NBU5tAPSAvNm-95-nLQ9Szwb6aA@mail.gmail.com>
9 Bug-Reference-URL: lists.gnu.org/archive/html/bug-bash/2011-09/msg00047.html
13 Using `declare' with attributes and an invalid array variable name or
14 assignment reference resulted in a segmentation fault instead of a
17 Patch (apply with `patch -p0'):
19 --- a/builtins/declare.def
20 +++ b/builtins/declare.def
21 @@ -513,6 +513,11 @@ declare_internal (list, local_var)
22 *subscript_start = '['; /* ] */
23 var = assign_array_element (name, value, 0); /* XXX - not aflags */
24 *subscript_start = '\0';
25 + if (var == 0) /* some kind of assignment error */
31 else if (simple_array_assign)
36 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
37 looks for to find the patch level (for the sccs version string). */
39 -#define PATCHLEVEL 18
40 +#define PATCHLEVEL 19
42 #endif /* _PATCHLEVEL_H_ */