Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417715 - [PATCH] app-text/tree's bash completion broken
Summary: [PATCH] app-text/tree's bash completion broken
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
Depends on:
Blocks: bashcomp-spacepath
  Show dependency tree
Reported: 2012-05-27 07:24 UTC by poletti.marco
Modified: 2012-05-28 00:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

A patch that fixes the problem on an installed system (tree_completion.patch,657 bytes, patch)
2012-05-27 07:24 UTC, poletti.marco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2012-05-27 23:17:55 UTC
in portage.  thanks for the bug report and patch.