aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/hush_test/hush-misc/compound.right14
-rw-r--r--shell/hush_test/hush-misc/compound.tests21
2 files changed, 35 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/compound.right b/shell/hush_test/hush-misc/compound.right
new file mode 100644
index 000000000..757d42fe4
--- /dev/null
+++ b/shell/hush_test/hush-misc/compound.right
@@ -0,0 +1,14 @@
1new group
20
31
42
53
64
75
86
9new group
10new group
110
121
132
143
diff --git a/shell/hush_test/hush-misc/compound.tests b/shell/hush_test/hush-misc/compound.tests
new file mode 100644
index 000000000..a5e85c3d5
--- /dev/null
+++ b/shell/hush_test/hush-misc/compound.tests
@@ -0,0 +1,21 @@
1echo new group
2echo 0; { :; }
3echo 1; { : ;}
4echo 2; ({ :; })
5echo 3; ({ : ;})
6echo 4; ( : )
7echo 5; ( :; )
8echo 6; ( : ;)
9# not sure if POSIX requires these, but bash accepts them ...
10#echo 7; {( : )}
11#echo 8; {( :; )}
12#echo 9; {( : ;)}
13
14echo new group
15#echo 0; {(:);}
16
17echo new group
18echo 0; (:)
19echo 1; (:;)
20echo 2; (:);
21echo 3; (:;);