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

Bug 341649

Summary: app-shells/bash-completion: bash completion for ssh/scp requires the base module, but doesn't drag it in automatically.
Product: Gentoo Linux Reporter: Tanktalus
Component: [OLD] UnspecifiedAssignee: Gentoo Shell Tools project <shell-tools>
Status: RESOLVED INVALID    
Severity: normal CC: xmw
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tanktalus 2010-10-18 14:59:07 UTC
I tried "scp Som<tab>" where "SomeFile.txt" exists, and got an error message: "bash: _known_hosts_real: command not found"

I'm not sure if this is in gentoo or is upstream.

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-10-26 15:32:21 UTC
Hi,

can you please report the involved (open)ssh and bash versions?

Thanks
Comment 2 Tanktalus 2010-10-26 15:41:52 UTC
$ equery l bash openssh
 * Searching for bash ...
[IP-] [  ] app-shells/bash-4.1_p7:0

 * Searching for openssh ...
[IP-] [  ] net-misc/openssh-5.5_p1-r2:0
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-10-27 13:16:13 UTC
Did you enable the base module too?

/usr/share/bash-completion/base:_known_hosts_real()
Comment 4 Tanktalus 2010-10-27 13:33:02 UTC
No, I didn't.  But why isn't that added automatically when I select a bash completion that needs it?
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-10-27 14:22:10 UTC
It is needed for just about everything. I've been thinking about ways to make it always enabled but it hasn't worked out for now. Please don't reopen the bug, it is on my mind but not going to happen for awhile.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-10-27 15:01:28 UTC
(In reply to comment #4)
> No, I didn't.  But why isn't that added automatically when I select a bash
> completion that needs it?
> 

Oh, by the way. There is no dependancy concept for completion modules. Upstream suggests to just enable them all, other distros do that too, Gentoo hasn't gone that route in an effort to be smarter. This was done before I started taking care of bash-completion package. I think it has to do with login shell loading time mainly. Here is some more information if you want to help out upstream.

http://wiki.debian.org/Teams/BashCompletion/Proposals/NewDirectoryLayout