Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301632 - app-shells/bash-completion doesn't work
Summary: app-shells/bash-completion doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-20 15:05 UTC by Tiago Marques
Modified: 2010-01-21 16:32 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 Tiago Marques 2010-01-20 15:05:33 UTC
Bash completion doesn't work, complaints about missing command: "_known_hosts_real"

Reproducible: Always

Steps to Reproduce:
1.emerge bash-completion
2.eselect bashcomp --enable global base ssh tar
3.use TAB to try and enable completion

Actual Results:  

bash: _known_hosts_real: command not found                                                     
bash: _known_hosts_real: command not found                                                     
bash: _known_hosts_real: command not found                                                     
bash: _known_hosts_real: command not found     

Expected Results:  
Command should complete or show completion options.

Tested with:

     Wed Jan  6 22:13:12 2010 >>> app-shells/bash-completion-1.1-r5
       merge time: 16 seconds.

     Wed Jan 20 14:59:57 2010 >>> app-shells/bash-completion-1.0-r5
       merge time: 18 seconds.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-21 15:37:58 UTC
(In reply to comment #0)
> 2.eselect bashcomp --enable global base ssh tar

That would have shown you this error message:
!!! Error: /usr/share/bash-completion/global doesn't exist

Try `eselect bashcomp enable --global base ssh tar'.

Don't forget to `. /etc/profile.d/bash-completion.sh' too if you want to directly use bash completion in the current shell.

Reopen this bug report if you still can't get it working.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-21 15:38:55 UTC
For reference, here's the short howto that the ebuild would have displayed:

 * Any user can enable the module completions without editing their
 * .bashrc by running:
 * 
 *     eselect bashcomp enable <module>
 * 
 * The system administrator can also be enable this globally with
 * 
 *     eselect bashcomp enable --global <module>
 * 
 * Make sure you at least enable the base module! Additional completion
 * modules can be found by running
 * 
 *     eselect bashcomp list
 * 
 * If you use non-login shells you still need to source
 * /etc/profile.d/bash-completion.sh in your ~/.bashrc.
Comment 3 Tiago Marques 2010-01-21 16:32:17 UTC
Thanks, I actually posted it wrong here, I was using:

eselect bashcomp enable --global base ssh tar

Seems to be working ok, I was missing that source.

Thanks