From 8d1cb466f434c2cdfa4d670eeee78feeba23b946 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Thu, 21 Sep 2023 19:35:46 +0800 Subject: [PATCH] Unix.mk:replace process substitution to pipe avoid out of order process substitution `>(..)` have different behaviors in different shells,unreliable execution order will lead to the problem of being unable to intercept errors. pipe are used here to ensure that `kwarning` is generated before the if statement. Signed-off-by: xuxin19 --- tools/Unix.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Unix.mk b/tools/Unix.mk index 90d90263d9..38868bca1d 100644 --- a/tools/Unix.mk +++ b/tools/Unix.mk @@ -648,7 +648,7 @@ else rm kwarning; \ fi MODULE_WARNING = "warning: the 'modules' option is not supported" - PURGE_MODULE_WARNING = 2> >(grep -v ${MODULE_WARNING} | tee kwarning) && ${KCONFIG_WARNING} + PURGE_MODULE_WARNING = 2>&1 >/dev/null | grep -v ${MODULE_WARNING} | tee kwarning && ${KCONFIG_WARNING} KCONFIG_OLDCONFIG = oldconfig ${PURGE_MODULE_WARNING} KCONFIG_OLDDEFCONFIG = olddefconfig ${PURGE_MODULE_WARNING} KCONFIG_MENUCONFIG = menuconfig ${PURGE_MODULE_WARNING}