>      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

Reply via email to