summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-misc/group_in_braces.tests
blob: f6571c35d17b135e965e9529c156d8e02ae9f4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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:$?