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