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
does not work. I've also tried the above while omitting the 'export'
command, to the same effect. I'm using bash as my shell. I figured
that I would try the same with sh instead, but still nothing.
I'm using:
bash-3.0-r12
Is this a bug, or something that I'm doing wrong? Thanks in advance
for your help.
Kris Kerwin
pgpHs75c4Bfs5.pgp
Description: PGP signature

