On Sun, Jan 04, 2009 at 03:27:01PM +0000, Penguin Lover Graham Murray squawked:
> Willie Wong <[email protected]> writes:
> 
> > Before I file a bug, I want to see if this is reproducible by others:
> >
> > After I boot into the console, if I type anything and then hit <tab>
> > for the bash completion, it gives an error
> >   -bash: _filedir: command not found
> > The weird thing is that if I start X and try the same in an aterm, the
> > tab completion works as expected. 
> >
> > I am currently on bash-completion-20081218, does anyone else have the
> > same problem?
> 
> I only saw the problem with vim, and then only for user root as a normal
> user it worked fine. So I disabled bash completion for vim. 

Okay, I have a theory. But I still have to check it on my laptop to be
sure. I just read the 20081218 version ebuild, and it states that for
non-login shells, one should source /etc/profile.d/bash-completion.sh

This is different from the previous version (20060301*) where one
should source /etc/profile.d/bash-completion (note the lack of .sh in
the file name). With the addition of the .sh suffix, for login shells,
the bash-completion scripts will be automatically sourced (when bash
loads /etc/profile it sources /etc/profile.d/*.sh by default on
Gentoo). 

So this suggests that, though I have not checked on my laptop, that on
my aterms bash-completion is actually NOT activated, since my .bashrc
almost certainly included the line to source bash-completion and not
bash-completion.sh, which explains the different behaviour between an 
aterm and a login console. 

The next postulate is that since Graham noticed the behaviour only
manifesting itself for vim and turning off the vim completion (I
remember vaguely that on my laptop 'eselect bashcomp list --global'
shows vim completion as enabled) that this maybe a bug with the module
relating to bash completion for vim. 

I'll check my hypothesis tonight and report back. 

W
-- 
Inside some of us is a thin person struggling to get out, but she can
usually be sedated with a few pieces of chocolate cake.
Sortir en Pantoufles: up 759 days, 17:55

Reply via email to