Re: PATH Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux