Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341649 - app-shells/bash-completion: bash completion for ssh/scp requires the base module, but doesn't drag it in automatically.
Summary: app-shells/bash-completion: bash completion for ssh/scp requires the base mod...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 14:59 UTC by Tanktalus
Modified: 2010-10-27 15:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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