PATH Issues

Gordon Messmer yinyang at eburg.com
Wed May 21 16:18:10 UTC 2008


Sieranski, Greg wrote:
> I have the following in my .bash_profile
>
> PATH=${JAVA_HOME}/bin:$HOME/opt/hg:/sbin:$HOME/bin:$PATH
...
> when I do echo $PATH I get:
>
> /home/gps/opt/jdk1.6.0_06/bin:/home/gps/opt/hg:/sbin:/home/gps/bin:/home/gps/opt/jdk1.6.0_06/bin:/home/gps/opt/hg:/sbin:/home/gps/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin 
>
>
> if you notice I have the jdk, hg , ~/bin being added to the path 
> twice. Does anyone know why this is happening?

Are you calling "source .bash_profile" in your .bashrc?  Don't.  
Instead, source .bashrc from .bash_profile.  You have it backward.




More information about the fedora-list mailing list