|
|
ff19ae |
BASH PATCH REPORT
|
|
|
ff19ae |
=================
|
|
|
ff19ae |
|
|
|
ff19ae |
Bash-Release: 4.2
|
|
|
ff19ae |
Patch-ID: bash42-017
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Reported-by: Curtis Doty <Curtis@GreenKey.net>
|
|
|
ff19ae |
Bug-Reference-ID: <20110621035324.A4F70849F59@mx1.iParadigms.net>
|
|
|
ff19ae |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00053.html
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Description:
|
|
|
ff19ae |
|
|
|
ff19ae |
Using `read -a foo' where foo was an already-declared associative array
|
|
|
ff19ae |
caused the shell to die with a segmentation fault.
|
|
|
ff19ae |
|
|
|
ff19ae |
Patch (apply with `patch -p0'):
|
|
|
ff19ae |
|
|
|
ff19ae |
*** ../bash-4.2-patched/builtins/read.def 2011-01-04 11:43:36.000000000 -0500
|
|
|
ff19ae |
--- builtins/read.def 2011-06-21 10:31:02.000000000 -0400
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 643,646 ****
|
|
|
ff19ae |
--- 642,651 ----
|
|
|
ff19ae |
return EXECUTION_FAILURE; /* readonly or noassign */
|
|
|
ff19ae |
}
|
|
|
ff19ae |
+ if (assoc_p (var))
|
|
|
ff19ae |
+ {
|
|
|
ff19ae |
+ builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
|
|
|
ff19ae |
+ xfree (input_string);
|
|
|
ff19ae |
+ return EXECUTION_FAILURE; /* existing associative array */
|
|
|
ff19ae |
+ }
|
|
|
ff19ae |
array_flush (array_cell (var));
|
|
|
ff19ae |
|
|
|
ff19ae |
*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
|
|
|
ff19ae |
--- patchlevel.h Thu Feb 24 21:41:34 2011
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 26,30 ****
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 16
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|
|
|
ff19ae |
--- 26,30 ----
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 17
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|