Upgrade shells/
[dragora.git] / patches / bash / bash51-002
blob8c991649a2d446e119fb405a9c92aa7a6f1cf6eb
1                              BASH PATCH REPORT
2                              =================
4 Bash-Release:   5.1
5 Patch-ID:       bash51-002
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
11 Bug-Description:
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
21 ***************
22 *** 214,222 ****
23   
24         status = wait_for_any_job (wflags, &pstat);
25 -       if (status < 0)
26 -       status = 127;
27
28         if (vname && status >= 0)
29         bind_var_to_int (vname, pstat.pid);
30         if (list)
31         unset_waitlist ();
32 --- 214,222 ----
33   
34         status = wait_for_any_job (wflags, &pstat);
35         if (vname && status >= 0)
36         bind_var_to_int (vname, pstat.pid);
37
38 +       if (status < 0)
39 +       status = 127;
40         if (list)
41         unset_waitlist ();
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
45 ***************
46 *** 26,30 ****
47      looks for to find the patch level (for the sccs version string). */
48   
49 ! #define PATCHLEVEL 1
50   
51   #endif /* _PATCHLEVEL_H_ */
52 --- 26,30 ----
53      looks for to find the patch level (for the sccs version string). */
54   
55 ! #define PATCHLEVEL 2
56   
57   #endif /* _PATCHLEVEL_H_ */