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
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