Skip to content

Commit 8d1cb46

Browse files
xuxin930xiaoxiang781216
authored andcommitted
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 <xuxin19@xiaomi.com>
1 parent d15a69a commit 8d1cb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Unix.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ else
648648
rm kwarning; \
649649
fi
650650
MODULE_WARNING = "warning: the 'modules' option is not supported"
651-
PURGE_MODULE_WARNING = 2> >(grep -v ${MODULE_WARNING} | tee kwarning) && ${KCONFIG_WARNING}
651+
PURGE_MODULE_WARNING = 2>&1 >/dev/null | grep -v ${MODULE_WARNING} | tee kwarning && ${KCONFIG_WARNING}
652652
KCONFIG_OLDCONFIG = oldconfig ${PURGE_MODULE_WARNING}
653653
KCONFIG_OLDDEFCONFIG = olddefconfig ${PURGE_MODULE_WARNING}
654654
KCONFIG_MENUCONFIG = menuconfig ${PURGE_MODULE_WARNING}

0 commit comments

Comments
 (0)