]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/case.tests
Bash-4.1 distribution source
[thirdparty/bash.git] / tests / case.tests
1 case foo in
2 bar) echo skip ;;
3 foo) echo fallthrough ;&
4 bax) echo to here ;&
5 qux) echo and here;;
6 fop) echo but not here;;
7 esac
8
9 case foobar in
10 bar) echo skip ;;
11 foo*) echo retest ;;&
12 *bar) echo and match ;;&
13 qux) echo but not this ;;
14 esac
15
16 case a in
17 a) echo no more clauses;&
18 esac