You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  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. --- a/builtins/wait.def
  14. +++ b/builtins/wait.def
  15. @@ -213,11 +213,11 @@ wait_builtin (list)
  16. }
  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. +
  24. + if (status < 0)
  25. + status = 127;
  26. if (list)
  27. unset_waitlist ();
  28. WAIT_RETURN (status);
  29. --- a/patchlevel.h
  30. +++ b/patchlevel.h
  31. @@ -25,6 +25,6 @@
  32. regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
  33. looks for to find the patch level (for the sccs version string). */
  34. -#define PATCHLEVEL 1
  35. +#define PATCHLEVEL 2
  36. #endif /* _PATCHLEVEL_H_ */