9e778b044c
- removed 0001-bash50-001.patch to 0018-bash50-018.patch - added 0001-bash51-001.patch, 0002-bash51-002.patch, 0003-bash51-003.patch, 0004-bash51-004.patch - moved 0019-input.h-add-missing-include-on-stdio.h.patch to 0005-input.h-add-missing-include-on-stdio.h.patch - removed 0020-locale.c-fix-build-without-wchar.patch (superseded by upstream commit) - added 0006-locale-fix-typo-local_shiftstates-vs.-locale_shiftst.patch to fix typo from upstream commit (see previous patch) - added 0007-glob-fix-dequote_pathname-vs.-udequote_pathname.patch Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
[From http://mirror.keystealth.org/gnu/bash/bash-5.1-patches/bash51-002]
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
BASH PATCH REPORT
|
|
=================
|
|
|
|
Bash-Release: 5.1
|
|
Patch-ID: bash51-002
|
|
|
|
Bug-Reported-by: oguzismailuysal@gmail.com
|
|
Bug-Reference-ID: <CAH7i3LoHFUa4aSF5-AD2r80HG-p-YzD_9ZxomarZkhP8NMq63g@mail.gmail.com>
|
|
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00037.html
|
|
|
|
Bug-Description:
|
|
|
|
If there are no jobs, and the `-n' and `-p' options are both supplied to
|
|
`wait', bash can assign a value to the variable name specified with `-p'
|
|
instead of leaving it unset.
|
|
|
|
Patch (apply with `patch -p0'):
|
|
|
|
*** ../bash-5.1-patched/builtins/wait.def 2020-04-09 15:13:57.000000000 -0400
|
|
--- b/builtins/wait.def 2020-12-11 09:46:49.000000000 -0500
|
|
***************
|
|
*** 214,222 ****
|
|
|
|
status = wait_for_any_job (wflags, &pstat);
|
|
- if (status < 0)
|
|
- status = 127;
|
|
-
|
|
if (vname && status >= 0)
|
|
bind_var_to_int (vname, pstat.pid);
|
|
if (list)
|
|
unset_waitlist ();
|
|
--- 214,222 ----
|
|
|
|
status = wait_for_any_job (wflags, &pstat);
|
|
if (vname && status >= 0)
|
|
bind_var_to_int (vname, pstat.pid);
|
|
+
|
|
+ if (status < 0)
|
|
+ status = 127;
|
|
if (list)
|
|
unset_waitlist ();
|
|
|
|
*** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
|
|
--- b/patchlevel.h 2020-10-01 11:01:28.000000000 -0400
|
|
***************
|
|
*** 26,30 ****
|
|
looks for to find the patch level (for the sccs version string). */
|
|
|
|
! #define PATCHLEVEL 1
|
|
|
|
#endif /* _PATCHLEVEL_H_ */
|
|
--- 26,30 ----
|
|
looks for to find the patch level (for the sccs version string). */
|
|
|
|
! #define PATCHLEVEL 2
|
|
|
|
#endif /* _PATCHLEVEL_H_ */
|