Sorry for not getting back earlier.
I think I have found the cause for the problem at our site.

As I said we have a mixed environment with different versions of ubuntu and 
redhat.
In our common bashrc there is a check if  the variable $BASH_COMPLETION is set.
On Redhat and until ubuntu 12 this variable gets set to /etc/bash_completion if 
 bash_completion is sourced.
This is not the case with ubuntu 14 so our bashrc  sources some legacy 
bash_completion from an NFS mount.

For ubuntu 14 this legacy stuff adds the trailing space in our case.

Thus I think this bug can be closed.

Nonetheless I'd like to know if there is way to detect if
bash_completion is already sourced other than checking the
BASH_COMPLETION variable.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1372286

Title:
  unwanted space after directory completion (probably old cruft after
  upgrades)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1372286/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to