busybox/shell/ash_test/ash-misc/elif2.tests
Denys Vlasenko 6824298ab4 hush: fix ELIF cmd1;cmd2 THEN ... not executing cmd2, closes 15571
function                                             old     new   delta
run_list                                            1012    1024     +12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2023-05-25 14:22:10 +02:00

8 lines
124 B
Text
Executable file

if true; then
echo "THEN"
elif echo "ELIF false"; false; then
echo "ELIF THEN"
else
echo "ELSE"
fi
echo "Ok:$?"