problem with utf8 name completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux