Here is my bash completion, untouched by me since package installation. IMHO it looks like this is a problem between bash and sh interpretations of the file. If you source it through bash it works but if it's sourced through sh it fails.
/etc/X11/Xsession sources the file through sh. -- /etc/bash_completion bad completion https://launchpad.net/bugs/82276 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs