Where are variables sourced from in bash/redhat?

Posted by Derek on Super User See other posts from Super User or by Derek
Published on 2012-03-22T16:56:27Z Indexed on 2012/03/22 17:34 UTC
Read the original article Hit count: 366

Filed under:
|
|

I am getitng something weird in my environment. I have a .bash_profile that only checks for .bashrc and then sources it. I have a JAVA_HOME in that file that is correctly setting the variable and exporting it. However, if I comment out the JAVA_HOME line in .bashrc, another JAVA_HOME is still showing up in my environment, different from the one i was setting in bashrc. Where is this other JAVA_HOME coming from?

Thanks

As it turns out - it seems like any shell I run is pulling in a JAVA_HOME from somewhere. I dont know what could be making this pull into csh, sh, bash, etc

© Super User or respective owner

Related posts about bash

Related posts about redhat