[arch-general] dd and bash_completion

Aaron Griffin aaronmgriffin at gmail.com
Thu Sep 24 12:17:24 EDT 2009


On Thu, Sep 24, 2009 at 7:39 AM, Thomas Bächler <thomas at archlinux.org> wrote:
> Xavier schrieb:
>>
>> I just tried git, before realizing there was a good pkgbuild for it :
>> http://aur.archlinux.org/packages.php?ID=27520
>>
>> and it does not work either.
>
> I also checked the git code for dd and it is identical to the 1.0 code.

Found the issue. It's not dd specific at all, it has to do with bash's
setting of the COMP_WORDBREAKS

$ echo $COMP_WORDBREAKS
"'><=;|&(:

These are word separators for completion words. The command "dd
if=<tab>" contains 3 completion words - "dd", "if", and "=" with the
current word being "=".

If you do the following, it works:

$ export COMP_WORDBREAKS=${COMP_WORDBREAKS//=}
$ dd if=<tab>

I suggest reporting this is a bug in bash_completion, as fixing this
is rather complex


More information about the arch-general mailing list