bash-4.2-010.patch 1.8 KB

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