PATH Issues
Sieranski, Greg
greg.sieranski at quoininc.com
Wed May 21 16:27:07 UTC 2008
Gordon Messmer wrote:
> 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.
>
my .bashrc is empty. I have not touched it.
More information about the fedora-list
mailing list