[Bash-completion-devel] _get_cword breaks with non-ascii characters when completion files
Guillaume Rousse
Guillaume.Rousse at inria.fr
Mon Apr 12 18:52:13 UTC 2010
Le 10/04/2010 12:30, Freddy Vulto a écrit :
> I made a test case for this problem, see commit 3d4941f. I have to
> change LC_CTYPE=C to see the problem, probably because my default locale
> is en_US? You can run the test case(s) with:
>
> ./run ./unit/_filedir.exp
>
> I was able to move the fix centrally to _quote_readline_by_ref in commit
> 50824f9. Can you confirm this works for you as well?
Yes. Your fix is indeed more elegant.
BTW, can't we also move the second eval() use (if [[ ${cur:0:1} == "'"
&& ${BASH_VERSINFO[0]} -ge 4 ]]) inside _quote_readline_by_ref function
too, or is it harmful for directory completion ?
--
BOFH excuse #294:
PCMCIA slave driver
More information about the Bash-completion-devel
mailing list