bash-4.2-034.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-034
  5. Bug-Reported-by: "Davide Brini" <dave_br@gmx.com>
  6. Bug-Reference-ID: <20120604164154.69781EC04B@imaps.oficinas.atrapalo.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-06/msg00030.html
  8. Bug-Description:
  9. In bash-4.2, the history code would inappropriately add a semicolon to
  10. multi-line compound array assignments when adding them to the history.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/parse.y 2011-11-21 18:03:36.000000000 -0500
  13. --- ./parse.y 2012-06-07 12:48:47.000000000 -0400
  14. ***************
  15. *** 4900,4905 ****
  16. --- 4916,4924 ----
  17. return (current_command_line_count == 2 ? "\n" : "");
  18. }
  19. + if (parser_state & PST_COMPASSIGN)
  20. + return (" ");
  21. +
  22. /* First, handle some special cases. */
  23. /*(*/
  24. /* If we just read `()', assume it's a function definition, and don't
  25. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  26. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  27. ***************
  28. *** 26,30 ****
  29. looks for to find the patch level (for the sccs version string). */
  30. ! #define PATCHLEVEL 33
  31. #endif /* _PATCHLEVEL_H_ */
  32. --- 26,30 ----
  33. looks for to find the patch level (for the sccs version string). */
  34. ! #define PATCHLEVEL 34
  35. #endif /* _PATCHLEVEL_H_ */