]>
Commit | Line | Data |
---|---|---|
deb63bfb | 1 | # $FreeBSD: head/bin/sh/tests/builtins/case8.0 223120 2011-06-15 21:48:10Z jilles $ |
71aad674 A |
2 | |
3 | case aZ_ in | |
4 | [[:alpha:]_][[:upper:]_][[:alpha:]_]) ;; | |
5 | *) echo Failed at $LINENO ;; | |
6 | esac | |
7 | ||
8 | case ' ' in | |
9 | [[:alpha:][:digit:]]) echo Failed at $LINENO ;; | |
10 | [![:alpha:][:digit:]]) ;; | |
11 | *) echo Failed at $LINENO ;; | |
12 | esac | |
13 | ||
14 | case '.X.' in | |
15 | *[[:lower:]]*) echo Failed at $LINENO ;; | |
16 | *[[:upper:]]*) ;; | |
17 | *) echo Failed at $LINENO ;; | |
18 | esac | |
19 | ||
20 | case ' ' in | |
21 | [![:print:]]) echo Failed at $LINENO ;; | |
22 | [![:alnum:][:punct:]]) ;; | |
23 | *) echo Failed at $LINENO ;; | |
24 | esac | |
25 | ||
26 | case ' | |
27 | ' in | |
28 | [[:print:]]) echo Failed at $LINENO ;; | |
29 | [' | |
30 | '[:digit:]]) ;; | |
31 | *) echo Failed at $LINENO ;; | |
32 | esac |