Comment 20 for bug 778627

I am also suffering this problem in Ubuntu 12.10.
Commenting out the sourcing of bash-completion managed to fix it, but the problem is that it disables all of its advantages. The problem must be in one of the various files at /usr/share/bash-completion/completions ,I'd bet. But debugging that until finding the culprit would be a task of true patience.

I tried to build bash manually and it always does the same thing unless I disable sourcing bash-completion.