]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/case7.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / case7.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/builtins/case7.0 302829 2016-07-14 09:34:42Z ache $
71aad674
A
2
3# Character ranges in a locale other than the POSIX locale, not specified
4# by POSIX.
5
6unset LC_ALL
7LC_CTYPE=de_DE.ISO8859-1
8export LC_CTYPE
9LC_COLLATE=de_DE.ISO8859-1
10export LC_COLLATE
11
12c1=e
13# o umlaut
14c2=$(printf '\366')
15
16case $c1$c2 in
17[a-z][a-z]) ;;
18*) echo wrong at $LINENO ;;
19esac
20
21case $c1$c2 in
22[a-f][n-p]) ;;
23*) echo wrong at $LINENO ;;
24esac