Okay, if someone would have some `01-foo` and another `02-bar` file in
there, it might be important to get the sorting right.

In my `/etc/bash_completion.d/`, there are just independent files, but
that might indeed vary.

Question is: When people put files with an order in there, are they
expecting C-locale ordering or their locale's ordering.

I just tried it out, the locale makes a difference in globbing.

        $ echo *
        fäo foa foo foö föo föö foz föz fzo fzö
        $ LC_ALL=C bash
        $ echo *
        foa foo foz foö fzo fzö fäo föo föz föö

One can set the locale to C in a regular session and then try it again:

        $ LC_ALL=C
        $ echo *
        foa foo foz foö fzo fzö fäo föo föz föö

So the locale (or collation) does influence the globbing, but we can
change that in the script.

So maybe we should put a LC_COLLATE=C in the top of the file? Although
that might have side effects …
-- 
http://martin-ueding.de/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to