On 1/2/06, Kris Kerwin <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having difficulties exporting environment variables from within > scripts. The problem doesn't seem to occur when exporting variables > from the command line. > > To reiterate with an example, > > # export VARIABLE='test' > # echo $VARIABLE > > works. However, > > # echo "export VARIABLE='test'" >> test_script > # chmod 754 test_script > # ./test_script > # echo $VARIABLE
On Linux/Unix, environment variables a passed from parent processes to children, never the other way around. This is unlike windows where environment variables are shared by all processes. So this is the expected and correct behavior, and thus, not a bug. -Richard -- gentoo-user@gentoo.org mailing list