bash51-002 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-002
  5. Bug-Reported-by: oguzismailuysal@gmail.com
  6. Bug-Reference-ID: <CAH7i3LoHFUa4aSF5-AD2r80HG-p-YzD_9ZxomarZkhP8NMq63g@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00037.html
  8. Bug-Description:
  9. If there are no jobs, and the `-n' and `-p' options are both supplied to
  10. `wait', bash can assign a value to the variable name specified with `-p'
  11. instead of leaving it unset.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-5.1-patched/builtins/wait.def 2020-04-09 15:13:57.000000000 -0400
  14. --- builtins/wait.def 2020-12-11 09:46:49.000000000 -0500
  15. ***************
  16. *** 214,222 ****
  17. status = wait_for_any_job (wflags, &pstat);
  18. - if (status < 0)
  19. - status = 127;
  20. -
  21. if (vname && status >= 0)
  22. bind_var_to_int (vname, pstat.pid);
  23. if (list)
  24. unset_waitlist ();
  25. --- 214,222 ----
  26. status = wait_for_any_job (wflags, &pstat);
  27. if (vname && status >= 0)
  28. bind_var_to_int (vname, pstat.pid);
  29. +
  30. + if (status < 0)
  31. + status = 127;
  32. if (list)
  33. unset_waitlist ();
  34. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  35. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  36. ***************
  37. *** 26,30 ****
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 1
  40. #endif /* _PATCHLEVEL_H_ */
  41. --- 26,30 ----
  42. looks for to find the patch level (for the sccs version string). */
  43. ! #define PATCHLEVEL 2
  44. #endif /* _PATCHLEVEL_H_ */