aboutsummaryrefslogtreecommitdiffstats
path: root/test-cases/case0/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-cases/case0/script.sh')
-rw-r--r--test-cases/case0/script.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/test-cases/case0/script.sh b/test-cases/case0/script.sh
new file mode 100644
index 0000000..bcbb4e2
--- /dev/null
+++ b/test-cases/case0/script.sh
@@ -0,0 +1,40 @@
+echo begin
+
+case foo {
+ foo { echo foo }
+}
+
+set X = foobar
+echo $X
+
+case $X {
+ foo {
+ echo is foo
+ }
+ bar {
+ echo is bar
+ }
+ foo.* {
+ echo begins with foo
+ }
+}
+
+case $X {
+ .* {
+ echo wildcard
+ }
+ foo.* {
+ echo begins with foo
+ }
+}
+
+case $X {
+ .*bar {
+ echo ends with bar
+ }
+ .* {
+ echo wildcard
+ }
+}
+
+echo end \ No newline at end of file