busybox/shell/hush_test/hush-misc/group_in_braces.tests
Denys Vlasenko 672a55e606 hush: allow { cmd } to not be terminated by semicolon in some cases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-11-04 18:46:14 +01:00

12 lines
278 B
Plaintext
Executable File

# Test cases where { cmd } does not require semicolon after "cmd"
(exit 2); { { true; } }
echo Zero:$?
(exit 2); {(true)}
echo Zero:$?
(exit 2); { true | { true; } }
echo Zero:$?
(exit 2); { while false; do :; done }
echo Zero:$?
(exit 2); { case a in b) ;; esac }
echo Zero:$?