projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git]
/
tests
/
intl.tests
1
export LC_ALL=en_US.UTF-8
2
3
a=$'\303\251'
4
5
echo "$a"
6
7
echo ${#a}
8
9
b=$'A\303\251B'
10
11
echo "$b"
12
13
echo ${b: -1}
14
15
c=AeB
16
17
echo ${c: -1}
18
19
unset a
20
a=$(printf '%b' 'A\303\251B')
21
IFS=$(printf '%b' '\303\251')
22
23
case "$a" in
24
"A${IFS}B") echo ok 1 ;;
25
*) echo bad 1 ;;
26
esac
27
28
set $a
29
30
case $1 in
31
A) echo ok 2 ;;
32
*) echo bad 2 ;;
33
esac
34
35
set a b
36
37
printf '%s\n' "$*"
38
printf '%s' "$*" | od -b
39
40
# display differences make this problematic
41
${THIS_SH} ./intl1.sub