I recently added this line to my .bashrc file so that I could use the java compiler javac from the command line (using MobaXTerm if that makes a difference)
export PATH=$PATH:"/cygdrive/c/Program Files/Java/jdk1.8.0_101/bin" But I'm seeing multiple duplicates in my $PATH variable (note that the newlines were only added for readability)
/bin: /drives/c/Users/Justin/DOCUME~1/MobaXterm/slash/bin: /drives/c/WINDOWS: /drives/c/WINDOWS/system32: /cygdrive/c/ProgramFiles/Java/jdk1.8.0_101/bin: /cygdrive/c/ProgramFiles/Java/jdk1.8.0_101/bin: /cygdrive/c/ProgramFiles/Java/jdk1.8.0_101/bin Is there something wrong with the way I'm adding to my $PATH?
export PATH=$PATH:"/cygdrive/c/ProgramFiles/Java/jdk1.8.0_101/bin"?