summaryrefslogtreecommitdiff
path: root/corebinutils/sh/tests/builtins/case7.0
blob: 0372f7387e68da3176e77e9ae74191fa69d154a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# Character ranges outside the POSIX locale are unspecified. Keep this test
# in the C locale so it remains deterministic across libc implementations.

unset LC_CTYPE LC_COLLATE LANG LANGUAGE
LC_ALL=C
export LC_ALL

c1=e
c2=o

case $c1$c2 in
[a-z][a-z]) ;;
*) echo wrong at $LINENO ;;
esac

case $c1$c2 in
[a-f][n-p]) ;;
*) echo wrong at $LINENO ;;
esac