Created attachment 313213 [details, diff]
A patch that fixes the problem on an installed system
The bash completion for app-text/tree (included in the package) doesn't work for files/directories with spaces.
Steps to reproduce:
* touch "filename with spaces"
* tree file<TAB>
Compare the result with, e.g:
* cd file<TAB>
I attach a patch that fixes the problem on an installed system.
I guess that the patch should be modified so that it's applied to the tarball before installation, but I don't know how to do that, and it's probably a trivial change in the patch.
There are similar bugs in many packages, I posted a more general bugreport here:
in portage. thanks for the bug report and patch.