rcolebaugh / rpms / bash

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