aboutsummaryrefslogtreecommitdiffstats
path: root/test-cases/case0/script.sh
blob: bcbb4e2e97c9bc1425b1afcc8114abe76172d12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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