ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: ??? Warning: JAVA_HOME environment variable is not set. ???
Date Tue, 12 Jun 2001 16:47:11 GMT
>      I found the problem on this one.  Apparently gnomes 
> hacked into my 
> machine and commented the export line in my .bashrc.  I was not aware 
> that one could "echo $VARS" and still see a value without 
> exporting them 
>   So, when I was typing "echo $JAVA_HOME" and seeing a 
> result, I wrongly assumed that my CLASSPATH, JAVA_HOME, etc were set 
> when they were not.

I'm sure they were *set*, just not exported.

Here's the difference:

with just setting:
argent:~$ TEST=value
argent:~$ echo $TEST
value
argent:~$ sh
argent:~$ echo $TEST

argent:~$ exit

now with exporting:
argent:~$ export TEST=value
argent:~$ echo $TEST
value
argent:~$ sh
argent:~$ echo $TEST
value
argent:~$ exit

It's a case of what any subshells get to see.

Jon

Mime
View raw message