Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 417715

Summary: [PATCH] app-text/tree's bash completion broken
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 417717    
Attachments: A patch that fixes the problem on an installed system

Description poletti.marco 2012-05-27 07:24:54 UTC
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.
Comment 1 poletti.marco 2012-05-27 07:41:51 UTC
There are similar bugs in many packages, I posted a more general bugreport here:
https://bugs.gentoo.org/show_bug.cgi?id=417717
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2012-05-27 23:17:55 UTC
in portage.  thanks for the bug report and patch.