| Summary: | bash-completion ssh -bash: _known_hosts_real: command not found | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Krzysiek Bielicki <krzysiek> |
| Component: | Current packages | Assignee: | Gentoo Shell Tools project <shell-tools> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | adrian, danny, notordoktor, trickie |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Krzysiek Bielicki
2010-02-15 14:21:01 UTC
Run `. /etc/profile.d/bash-completion.sh` or launch a new shell. Generally bash completion is working (ex. for emerge) so bash-completion is initialized. _known_hosts_real is called only from bash_completion.d/ssh so bashcomp scripts are executed as they should, but _known_hosts_real function/executable does not exist. I can confirm that bashcomp is generally working, but the the issue with ssh host completion (In reply to comment #2) > Generally bash completion is working (ex. for emerge) so bash-completion is > initialized. > _known_hosts_real is called only from bash_completion.d/ssh so bashcomp scripts > are executed as they should, but _known_hosts_real function/executable does not > exist. Well, it works perfectly fine here w/ app-shells/bash-completion-1.1-r5: $ ssh <TAB><TAB> ::1 alfa gw localhost notorcomp printserver _known_hosts_real exists in /etc/bash_completion.d/base I've been having this problem for some time. Enabling the `base' bash_completion module brings in the _known_hosts_real function (and the /etc/bash_completion.d/base file), which fixed it for me. Try the following, `eselect bashcomp enable --global base' Yep, enabling base fixes the issue! almost everything needs base, glad you resolved the issue This is not a good solution. Enabling 'base' causes e.g. ~username completion to fail in lots of cases, e.g. tab-completing the username in 'cd ~someuser' (In reply to comment #8) > This is not a good solution. Enabling 'base' causes e.g. ~username completion > to fail in lots of cases, e.g. tab-completing the username in 'cd ~someuser' > cd ~userna<tab> completes to /home/username/ As soon as I enable the 'base' bashcomp it stops working. |