7 Bug-Reported-by: Curtis Doty <Curtis@GreenKey.net>
8 Bug-Reference-ID: <20110621035324.A4F70849F59@mx1.iParadigms.net>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00053.html
13 Using `read -a foo' where foo was an already-declared associative array
14 caused the shell to die with a segmentation fault.
16 Patch (apply with `patch -p0'):
18 --- a/builtins/read.def
19 +++ b/builtins/read.def
20 @@ -642,6 +642,12 @@ assign_vars:
22 return EXECUTION_FAILURE; /* readonly or noassign */
26 + builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
27 + xfree (input_string);
28 + return EXECUTION_FAILURE; /* existing associative array */
30 array_flush (array_cell (var));
32 alist = list_string (input_string, ifs_chars, 0);
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 16
40 +#define PATCHLEVEL 17
42 #endif /* _PATCHLEVEL_H_ */