1 |
Apparently, though unproven, at 21:36 on Thursday 18 November 2010, Mike |
2 |
Edenfield did opine thusly: |
3 |
|
4 |
> On 11/18/2010 1:40 PM, Alan McKinnon wrote: |
5 |
> > Apparently, though unproven, at 17:52 on Thursday 18 November 2010, Mike |
6 |
> > |
7 |
> > Edenfield did opine thusly: |
8 |
> >> Is there something special about the file name |
9 |
> >> /etc/portage/package.use/java ? For some reason, if I create this file |
10 |
> >> to hold USE flags for my java packages, bash tries to source it when I |
11 |
> >> log in. As far as I can tell this is the only filename that gets this |
12 |
> > |
13 |
> >> wierd treatment: |
14 |
> > grep -r is your friend here. Most likely it happened when you typed an |
15 |
> > "echo > file" type command sometime and botched the redirectors |
16 |
> |
17 |
> Huh. Found it, but now I'm even more confused than before: |
18 |
> |
19 |
> platypus ~ # ls -alF /etc/bash_completion.d/java |
20 |
> lrwxrwxrwx 1 root root 30 Nov 16 08:18 /etc/bash_completion.d/java -> |
21 |
> //etc/portage/package.use/java |
22 |
> |
23 |
> I'm pretty sure I didn't actually make that softlink myself, and I have |
24 |
> no idea where it came from: |
25 |
> |
26 |
> platypus ~ # equery belongs /etc/bash_completion.d/java |
27 |
> * Searching for /etc/bash_completion.d/java ... |
28 |
> platypus ~ # |
29 |
|
30 |
Maybe you had the bad luck to install an awesomely dodgy ebuild. Here's what |
31 |
it should be: |
32 |
|
33 |
# ls -al /etc/bash_completion.d/java |
34 |
lrwxrwxrwx 1 root root 31 Oct 27 03:08 /etc/bash_completion.d/java -> |
35 |
/usr/share/bash-completion/java |
36 |
|
37 |
|
38 |
You can either just fix the symlink, or remerge bash-completion. |
39 |
|
40 |
I'd also check /etc/bash_completion.d/ for any more dodgy symlinks |
41 |
|
42 |
|
43 |
-- |
44 |
alan dot mckinnon at gmail dot com |