[Bash-completion-devel] dd completion not working (was: Fwd: [arch-general] dd and bash_completion)
David Paleino
d.paleino at gmail.com
Thu Sep 24 19:34:26 UTC 2009
Freddy Vulto wrote:
> On Thu, Sep 24, 2009 at 6:36 PM, David Paleino <d.paleino at gmail.com>
> wrote:
>> This is due to COMP_WORDBREAKS containing "=":
>
> I guess this bug turns up on bash-4 only?
>
> This can be fixed by adding `=' as an argument to `_get_cword' so that
> _get_cword on bash-4 doesn't split words on `='.
>
> Done so in commit f871fe4.
It didn't really fix the completion, for me at least.
> [..] If you use COMP_CWORDS, this is what you get on bash-4:
>
> $ dd if=<TAB>
This is even more broken earlier:
$ dd if<TAB>
$ dd if\=
And completion fails. With your fix, we only get right completions if you
only <TAB> after the = (and write it manually).
Thanks for your work!
David (getting lost in the complexity of _get_cword())
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
More information about the Bash-completion-devel
mailing list