Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263640 - git bash completion doesn't work with app-shells/bash-completion-20081219-r1
Summary: git bash completion doesn't work with app-shells/bash-completion-20081219-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 18:04 UTC by Dan Fego
Modified: 2009-03-24 18:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
My /etc/bash_completion.d directory (etc-bash_completion.d,682 bytes, text/plain)
2009-03-24 18:14 UTC, Dan Fego
Details
The results of "eselect bashcomp list" (eselect-bashcomp-list,1.74 KB, text/plain)
2009-03-24 18:15 UTC, Dan Fego
Details

Note You need to log in before you can comment on or make changes to this bug.
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.