Apparently, though unproven, at 21:36 on Thursday 18 November 2010, Mike 
Edenfield did opine thusly:

> On 11/18/2010 1:40 PM, Alan McKinnon wrote:
> > Apparently, though unproven, at 17:52 on Thursday 18 November 2010, Mike
> > 
> > Edenfield did opine thusly:
> >> Is there something special about the file name
> >> /etc/portage/package.use/java ?  For some reason, if I create this file
> >> to hold USE flags for my java packages, bash tries to source it when I
> >> log in.  As far as I can tell this is the only filename that gets this
> > 
> >> wierd treatment:
> > grep -r is your friend here. Most likely it happened when you typed an
> > "echo > file" type command sometime and botched the redirectors
> 
> Huh.  Found it, but now I'm even more confused than before:
> 
> platypus ~ # ls -alF /etc/bash_completion.d/java
> lrwxrwxrwx 1 root root 30 Nov 16 08:18 /etc/bash_completion.d/java ->
> //etc/portage/package.use/java
> 
> I'm pretty sure I didn't actually make that softlink myself, and I have
> no idea where it came from:
> 
> platypus ~ # equery belongs /etc/bash_completion.d/java
>  * Searching for /etc/bash_completion.d/java ...
> platypus ~ #

Maybe you had the bad luck to install an awesomely dodgy ebuild. Here's what 
it should be:

# ls -al /etc/bash_completion.d/java
lrwxrwxrwx 1 root root 31 Oct 27 03:08 /etc/bash_completion.d/java -> 
/usr/share/bash-completion/java


You can either just fix the symlink, or remerge bash-completion.

I'd also check /etc/bash_completion.d/ for any more dodgy symlinks


-- 
alan dot mckinnon at gmail dot com

Reply via email to