7 Bug-Reported-by: oguzismailuysal@gmail.com
8 Bug-Reference-ID: <CAH7i3LoHFUa4aSF5-AD2r80HG-p-YzD_9ZxomarZkhP8NMq63g@mail.gmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00037.html
13 If there are no jobs, and the `-n' and `-p' options are both supplied to
14 `wait', bash can assign a value to the variable name specified with `-p'
15 instead of leaving it unset.
17 Patch (apply with `patch -p0'):
19 *** ../bash-5.1-patched/builtins/wait.def 2020-04-09 15:13:57.000000000 -0400
20 --- builtins/wait.def 2020-12-11 09:46:49.000000000 -0500
24 status = wait_for_any_job (wflags, &pstat);
28 if (vname && status >= 0)
29 bind_var_to_int (vname, pstat.pid);
34 status = wait_for_any_job (wflags, &pstat);
35 if (vname && status >= 0)
36 bind_var_to_int (vname, pstat.pid);
43 *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
44 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 1
51 #endif /* _PATCHLEVEL_H_ */
53 looks for to find the patch level (for the sccs version string). */
55 ! #define PATCHLEVEL 2
57 #endif /* _PATCHLEVEL_H_ */