bash52-032.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-032
  5. Bug-Reported-by: Albert Akchurin <ackbeat@gmail.com>
  6. Bug-Reference-ID: Mon, 11 Dec 2023 20:41:58 +0600
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2023-12/msg00047.html
  8. Bug-Description:
  9. Patch (apply with `patch -p0'):
  10. When printing functions containing coprocesses, the displayed coproc command
  11. has the word COPROC inserted unconditionally, resulting in function bodies
  12. that cannot be re-read as input.
  13. *** ../bash-5.2-patched/print_cmd.c Mon Aug 21 16:09:44 2023
  14. --- print_cmd.c Mon Dec 11 15:34:30 2023
  15. ***************
  16. *** 357,361 ****
  17. case cm_coproc:
  18. ! cprintf ("coproc %s ", command->value.Coproc->name);
  19. skip_this_indent++;
  20. make_command_string_internal (command->value.Coproc->command);
  21. --- 357,363 ----
  22. case cm_coproc:
  23. ! cprintf ("coproc ");
  24. ! if (command->value.Coproc->command->type != cm_simple)
  25. ! cprintf ("%s ", command->value.Coproc->name);
  26. skip_this_indent++;
  27. make_command_string_internal (command->value.Coproc->command);
  28. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  29. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  30. ***************
  31. *** 26,30 ****
  32. looks for to find the patch level (for the sccs version string). */
  33. ! #define PATCHLEVEL 31
  34. #endif /* _PATCHLEVEL_H_ */
  35. --- 26,30 ----
  36. looks for to find the patch level (for the sccs version string). */
  37. ! #define PATCHLEVEL 32
  38. #endif /* _PATCHLEVEL_H_ */