* problem with utf8 name completion
@ 2016-11-08 3:37 Thomas DEBESSE
0 siblings, 0 replies; only message in thread
From: Thomas DEBESSE @ 2016-11-08 3:37 UTC (permalink / raw)
To: DASH mailing list
Hi, I discovered dash has problems with some UTF-8 characters, I'm
running dash 0.5.8
See this proof of concept:
$ echo $LANG
C.UTF-8
$ cat proof.sh
#! /bin/sh
listO () {
# latin 'o'
echo 'o'
# greek 'o' (omicron)
echo 'ο'
# cyrillic 'o'
echo 'о'
}
for i in $(listO)
do
for j in $(listO)
do
for k in $(listO)
do
touch "${i}${j}${k}"
done
done
done
ls -1 [oοо][oοо][oοо]
#EOF
$ dash proof.sh
ooo
$ bash proof.sh
ooo
ooο
ooо
oοo
oοο
oοо
oоo
oоο
oоо
οoo
οoο
οoо
οοo
οοο
οοо
οоo
οоο
οоо
оoo
оoο
оoо
оοo
оοο
оοо
ооo
ооο
ооо
The expected result is the one provided by bash, as they are 3
different characters.
--
Thomas DEBESSE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-08 3:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 3:37 problem with utf8 name completion Thomas DEBESSE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).