Blame SOURCES/bash42-010

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