xref: /freebsd/bin/sh/tests/builtins/case8.0 (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1
2case aZ_ in
3[[:alpha:]_][[:upper:]_][[:alpha:]_]) ;;
4*) echo Failed at $LINENO ;;
5esac
6
7case ' ' in
8[[:alpha:][:digit:]]) echo Failed at $LINENO ;;
9[![:alpha:][:digit:]]) ;;
10*) echo Failed at $LINENO ;;
11esac
12
13case '.X.' in
14*[[:lower:]]*) echo Failed at $LINENO ;;
15*[[:upper:]]*) ;;
16*) echo Failed at $LINENO ;;
17esac
18
19case ' ' in
20[![:print:]]) echo Failed at $LINENO ;;
21[![:alnum:][:punct:]]) ;;
22*) echo Failed at $LINENO ;;
23esac
24
25case '
26' in
27[[:print:]]) echo Failed at $LINENO ;;
28['
29'[:digit:]]) ;;
30*) echo Failed at $LINENO ;;
31esac
32