bash51-011 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-011
  5. Bug-Reported-by: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
  6. Bug-Reference-ID: <CAALKErFrm+yuwy=ioK+RmjCiwxTDmzeMFWqLF2BEWYtkGS5UFQ@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-11/msg00064.html
  8. Bug-Description:
  9. When reading a compound assignment, and running it through the parser to
  10. split it into words, we need to save and restore any alias we're currently
  11. expanding.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-5.1-patched/parse.y 2020-11-28 12:10:06.000000000 -0500
  14. --- parse.y 2021-10-13 11:04:27.000000000 -0400
  15. ***************
  16. *** 6494,6501 ****
  17. push_stream (1);
  18. - #if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */
  19. if (ea = expanding_alias ())
  20. parser_save_alias ();
  21. - #endif
  22. last_read_token = WORD; /* WORD to allow reserved words here */
  23. current_command_line_count = 0;
  24. --- 6494,6499 ----
  25. ***************
  26. *** 6532,6539 ****
  27. pop_stream ();
  28. - #if 0 /* TAG: bash-5.2 */
  29. if (ea)
  30. parser_restore_alias ();
  31. - #endif
  32. #if defined (HISTORY)
  33. --- 6530,6535 ----
  34. *** ../bash-5.1-patched/y.tab.c 2020-11-28 12:17:19.000000000 -0500
  35. --- y.tab.c 2021-11-17 10:47:35.000000000 -0500
  36. ***************
  37. *** 8788,8795 ****
  38. push_stream (1);
  39. - #if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */
  40. if (ea = expanding_alias ())
  41. parser_save_alias ();
  42. - #endif
  43. last_read_token = WORD; /* WORD to allow reserved words here */
  44. current_command_line_count = 0;
  45. --- 8777,8782 ----
  46. ***************
  47. *** 8826,8833 ****
  48. pop_stream ();
  49. - #if 0 /* TAG: bash-5.2 */
  50. if (ea)
  51. parser_restore_alias ();
  52. - #endif
  53. #if defined (HISTORY)
  54. --- 8813,8818 ----
  55. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  56. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  57. ***************
  58. *** 26,30 ****
  59. looks for to find the patch level (for the sccs version string). */
  60. ! #define PATCHLEVEL 10
  61. #endif /* _PATCHLEVEL_H_ */
  62. --- 26,30 ----
  63. looks for to find the patch level (for the sccs version string). */
  64. ! #define PATCHLEVEL 11
  65. #endif /* _PATCHLEVEL_H_ */