I have a freshly installed ubuntu 14.04.1 LTS and it also shows the problem. Thus I doubt that it a legacy package. I found that it occurs repeatable with symlinks and aliased commands as shown below
TEST SCENARIO ln -s /tmpX /tmp alias ll='ls -l' ls /tmp<TAB> # gives "tmp/" and "tmpX/" without trailing spaces on a new line ll /tmp<TAB> # ditto ls /tmpX<TAB> # completes to "ls /tmpX/" on the same line #BUT ll /tmpX<TAB> # gives "ll /tmpX " with a trailing space thus breaking further completion -- 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