1 Star 0 Fork 33

src-oepkgs-oE-rv / bash

forked from src-openEuler / bash 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Bash-5.1-patch-2-fix-wait-n-p-var-with-no-jobs-not-l.patch 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
JeanLeo 提交于 2021-06-18 10:12 . add upstream patches
From ba970fdb2dcc627f2952d0bd3421abdcd9e8b85e Mon Sep 17 00:00:00 2001
From: Chet Ramey <chet.ramey@case.edu>
Date: Sat, 19 Dec 2020 14:27:54 -0500
Subject: [PATCH] Bash-5.1 patch 2: fix wait -n -p var with no jobs not leaving
var unset
---
builtins/wait.def | 6 +++---
patchlevel.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtins/wait.def b/builtins/wait.def
index 12260737..824c83fe 100644
--- a/builtins/wait.def
+++ b/builtins/wait.def
@@ -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);
diff --git a/patchlevel.h b/patchlevel.h
index d5b8c5af..8a183551 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -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_ */
--
2.27.0
1
https://gitee.com/src-oepkgs-oe-rv/bash.git
git@gitee.com:src-oepkgs-oe-rv/bash.git
src-oepkgs-oe-rv
bash
bash
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891