source: vendor/bash/3.1-p17/tests/intl.tests

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 372 bytes
Line 
1export LANG=en_US.UTF-8
2
3a=$'\303\251'
4
5echo "$a"
6
7echo ${#a}
8
9b=$'A\303\251B'
10
11echo "$b"
12
13echo ${b: -1}
14
15c=AeB
16
17echo ${c: -1}
18
19unset a
20a=$(printf '%b' 'A\303\251B')
21IFS=$(printf '%b' '\303\251')
22
23case "$a" in
24"A${IFS}B") echo ok 1 ;;
25*) echo bad 1 ;;
26esac
27
28set $a
29
30case $1 in
31A) echo ok 2 ;;
32*) echo bad 2 ;;
33esac
34
35set a b
36
37printf '%s\n' "$*"
38printf '%s' "$*" | od -b
Note: See TracBrowser for help on using the repository browser.