Linux-Dash Archive mirror
 help / color / mirror / Atom feed
From: Thomas DEBESSE <thomas.debesse@gmail.com>
To: DASH mailing list <dash@vger.kernel.org>
Subject: problem with utf8 name completion
Date: Tue, 8 Nov 2016 04:37:23 +0100	[thread overview]
Message-ID: <CALpuBKxcOLBXGx81ZheagX75GSh4d63M1SYnjwTWHjM3m3VJpg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2016-11-08  3:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALpuBKxcOLBXGx81ZheagX75GSh4d63M1SYnjwTWHjM3m3VJpg@mail.gmail.com \
    --to=thomas.debesse@gmail.com \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).