Praedor Tempus wrote:
>
> OK, I once thought I understood this but now I guess I do not.
> If I run "env", my path appears thus:
>
If you re-arrange the paths one per line, and look for groupings, you see this:
PATH=
/bin:
/usr/bin:
/usr/X11R6/bin:
/usr/local/bin:
/usr/X11R6/bin:
/opt/IBMJava2-13/jre/bin:
/usr/local/bin:
/usr/X11R6/bin:
/usr/games:
/home/praedor/bin:
/usr/local/mozilla:
/usr/X11R6/bin:
/opt/IBMJava2-13/jre/bin:
/usr/local/bin:
/usr/X11R6/bin:
/usr/games:
/usr/X11R6/bin:
/opt/IBMJava2-13/jre/bin:
/usr/local/bin:
/usr/X11R6/bin:
/usr/games
Do you use "source .bashrc"? Somewhere, you are using the likes of:
PATH=foo:$PATH
at least twice, which is the usual culprit...
HTH,
Pierre
>
> As you can see there are redundant entries for just about everything.
> If I look at /etc/profile, there is nothing there to cause this, as its
> entries are in no way duplicates of my personal .bash_profile path.
> Where is this all coming from? I want everything in the path to appear ONCE
> and I want everything in it EXCEPT my home directory to appear globally.
>
> If not profile and .bash_profile, then what file am I looking for that
> creates the global path environment?
>
> --
> Praedor
> ----
> Against stupidity, the gods themselves contend in vain