PATH Issues

Sieranski, Greg greg.sieranski at quoininc.com
Wed May 21 14:21:53 UTC 2008


I have the following in my .bash_profile

CVS_RSH=ssh
DAISY_HOME=$HOME/src/quoininc.com/daisy/projects/daisy-2.0.1
EDITOR=/usr/bin/vim
GREP_COLOR='1;32'
JAVA_HOME=$HOME/opt/jdk1.6.0_06
PATH=${JAVA_HOME}/bin:$HOME/opt/hg:/sbin:$HOME/bin:$PATH

export CVSROOT
export CVS_RSH
export DAISY_HOME
export EDITOR
export GREP_COLOR
export JAVA_HOME
export PATH

alias grep='grep --color=always'
alias la='env LC_ALL=C ls --color=tty -I lost+found -Fla'
alias ll='env LC_ALL=C ls --color=tty -I lost+found -Fl'
alias ls='env LC_ALL=C ls --color=tty -I lost+found -F'
alias vi=$EDITOR

PS1="[\w] "
         case `id -u` in
               0) PS1="${PS1}# ";;
               *) PS1="${PS1}$ ";;
         esac


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?

Thanks,
Greg Sieranski




More information about the fedora-list mailing list