Bash-5.1 patch 2: fix wait -n -p var with no jobs not leaving var unset

This commit is contained in:
Chet Ramey
2020-12-19 14:27:54 -05:00
parent f1e1163b3e
commit ba970fdb2d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -213,11 +213,11 @@ wait_builtin (list)
}
status = wait_for_any_job (wflags, &pstat);
if (status < 0)
status = 127;
if (vname && status >= 0)
bind_var_to_int (vname, pstat.pid);
if (status < 0)
status = 127;
if (list)
unset_waitlist ();
WAIT_RETURN (status);
+1 -1
View File
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
#define PATCHLEVEL 1
#define PATCHLEVEL 2
#endif /* _PATCHLEVEL_H_ */