Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 263640

Summary: git bash completion doesn't work with app-shells/bash-completion-20081219-r1
Product: Gentoo Linux Reporter: Dan Fego <dan.fego>
Component: Current packagesAssignee: Jeremy Olexa (darkside) (RETIRED) <darkside>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My /etc/bash_completion.d directory
The results of "eselect bashcomp list"

Description Dan Fego 2009-03-24 18:04:22 UTC
Prior to upgrading to version 20081219-r1, bash-completion for git worked just fine. That is, when I typed git <TAB><TAB>, git commands were given. Now, filenames are shown, which looks like it's falling back on something else.

I just reverted to version 20060301, and completion works here.

Reproducible: Always

Steps to Reproduce:
1. Install app-shells/bash-completion-20081219-r1
2. Go to a git repo (not sure if you need to be in one)
3. Type git <TAB><TAB>
Actual Results:  
Filenames in the directory are shown.

Expected Results:  
Git command options (commit, etc.) should be shown.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-24 18:10:44 UTC
(In reply to comment #0)

> I just reverted to version 20060301, and completion works here.

Which suggests that you didn't enable the b-c module properly.

Please show the output of ls -l /etc/bash_completion.d/ & eselect bashcomp list

Comment 2 Dan Fego 2009-03-24 18:14:52 UTC
Created attachment 186134 [details]
My /etc/bash_completion.d directory
Comment 3 Dan Fego 2009-03-24 18:15:11 UTC
Created attachment 186135 [details]
The results of "eselect bashcomp list"
Comment 4 Dan Fego 2009-03-24 18:15:27 UTC
As an additional note, when I reverted, I re-did the thing about sourcing /etc/profile.d/bash-completion from my .bashrc, then when I upgraded, removed it as per the instructions. I also tried leaving it in, but it doesn't seem to help.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-24 18:20:11 UTC
(In reply to comment #4)
> As an additional note, when I reverted, I re-did the thing about sourcing
> /etc/profile.d/bash-completion from my .bashrc, then when I upgraded, removed
> it as per the instructions. I also tried leaving it in, but it doesn't seem to
> help.
> 

Oh, you still need to source /etc/profile.d/bash-completion.sh, do you do that? 

Comment 6 Dan Fego 2009-03-24 18:26:10 UTC
I do now. That fixes the problem. Ah... Okay, after reading the instructions *yet again* in the elog notice: "if you use non-login shells..." -- I misread that.

My bad. Well, I'm glad this isn't a bug.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-24 18:43:33 UTC
(In reply to comment #6)

> My bad. Well, I'm glad this isn't a bug.

No worries.