diff options
-rw-r--r-- | shell/hush_test/hush-misc/compound.right | 14 | ||||
-rw-r--r-- | shell/hush_test/hush-misc/compound.tests | 21 |
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 @@ | |||
1 | new group | ||
2 | 0 | ||
3 | 1 | ||
4 | 2 | ||
5 | 3 | ||
6 | 4 | ||
7 | 5 | ||
8 | 6 | ||
9 | new group | ||
10 | new group | ||
11 | 0 | ||
12 | 1 | ||
13 | 2 | ||
14 | 3 | ||
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 @@ | |||
1 | echo new group | ||
2 | echo 0; { :; } | ||
3 | echo 1; { : ;} | ||
4 | echo 2; ({ :; }) | ||
5 | echo 3; ({ : ;}) | ||
6 | echo 4; ( : ) | ||
7 | echo 5; ( :; ) | ||
8 | echo 6; ( : ;) | ||
9 | # not sure if POSIX requires these, but bash accepts them ... | ||
10 | #echo 7; {( : )} | ||
11 | #echo 8; {( :; )} | ||
12 | #echo 9; {( : ;)} | ||
13 | |||
14 | echo new group | ||
15 | #echo 0; {(:);} | ||
16 | |||
17 | echo new group | ||
18 | echo 0; (:) | ||
19 | echo 1; (:;) | ||
20 | echo 2; (:); | ||
21 | echo 3; (:;); | ||