Bug 826959 - missing /etc/bash_completion
Summary: missing /etc/bash_completion
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-31 10:10 UTC by Leon Keijser
Modified: 2012-05-31 14:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-31 14:51:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.