462fb2
			     BASH PATCH REPORT
462fb2
			     =================
462fb2
462fb2
Bash-Release:	4.2
462fb2
Patch-ID:	bash42-010
462fb2
462fb2
Bug-Reported-by:	Mike Frysinger <vapier@gentoo.org>
462fb2
Bug-Reference-ID:	<201104122356.20160.vapier@gentoo.org>
462fb2
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-04/msg00058.html
462fb2
462fb2
Bug-Description:
462fb2
462fb2
Bash did not correctly print/reproduce here documents attached to commands
462fb2
inside compound commands such as arithmetic for loops and user-specified
462fb2
subshells.  This affected the execution of such commands inside a shell
462fb2
function when the function definition is saved and later restored using
462fb2
`.' or `eval'.
462fb2
462fb2
Patch (apply with `patch -p0'):
462fb2
462fb2
*** ../bash-4.2-patched/print_cmd.c	2010-05-30 18:34:08.000000000 -0400
462fb2
--- print_cmd.c	2011-04-14 10:43:18.000000000 -0400
462fb2
***************
462fb2
*** 316,319 ****
462fb2
--- 317,321 ----
462fb2
  	  skip_this_indent++;
462fb2
  	  make_command_string_internal (command->value.Subshell->command);
462fb2
+ 	  PRINT_DEFERRED_HEREDOCS ("");
462fb2
  	  cprintf (" )");
462fb2
  	  break;
462fb2
***************
462fb2
*** 593,596 ****
462fb2
--- 606,610 ----
462fb2
    indentation += indentation_amount;
462fb2
    make_command_string_internal (arith_for_command->action);
462fb2
+   PRINT_DEFERRED_HEREDOCS ("");
462fb2
    semicolon ();
462fb2
    indentation -= indentation_amount;
462fb2
***************
462fb2
*** 654,657 ****
462fb2
--- 668,672 ----
462fb2
  
462fb2
    make_command_string_internal (group_command->command);
462fb2
+   PRINT_DEFERRED_HEREDOCS ("");
462fb2
  
462fb2
    if (inside_function_def)
462fb2
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
462fb2
--- patchlevel.h	Thu Feb 24 21:41:34 2011
462fb2
***************
462fb2
*** 26,30 ****
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 9
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */
462fb2
--- 26,30 ----
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 10
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */