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