Bug 826959

Summary: missing /etc/bash_completion
Product: [Fedora] Fedora Reporter: Leon Keijser <leon>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: fatkasuvayu, sheltren, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-31 14:51:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leon Keijser 2012-05-31 10:10:24 UTC
Description of problem:
When enabling other bash completions by creating a symlink from /etc/bash_completion.d/ to /usr/share/bash_completion/completions/* certain functions get called that aren't available.

Version-Release number of selected component (if applicable):
bash-completion-1.99-1.fc17.noarch

How reproducible:
Create a symlink for ssh completion

Steps to Reproduce:
1. become root. Add a host to ~/.ssh/config
2. ln -s /usr/share/bash_completion/completions/ssh /etc/bash_completion.d/ssh
3. ssh <part of host in ~/.ssh/config> + TAB
 
Actual results:
Hostname does not complete

Expected results:
Hostname completes

Additional info:
The /etc/bash_completion file is referenced by all (new) user's ~/.bashrc file.

Comment 1 Ville Skyttä 2012-05-31 14:51:06 UTC
(In reply to comment #0)
> When enabling other bash completions by creating a symlink from
> /etc/bash_completion.d/ to /usr/share/bash_completion/completions/*

That's unsupported and should not be needed.

> The /etc/bash_completion file is referenced by all (new) user's ~/.bashrc
> file.

Not in Fedora's default config nor has been AFAIK; /etc/profile.d/bash_completion.sh loads bash_completion automatically when appropriate, and completions are loaded on demand from /usr/share/bash_completion/completions in bash-completion > 1.90.