I'm having a problem with setting environment variables that are only supposed to exist in that terminal session. The script is shown below.
echo Setting LENZ Development environment variables.When the script runs the "echo $BUILD" line shows the correct value, if I type the same thing at the command prompt I get a balnk.
echo
echo Please Note: the CLASSPATH variable is altered for the duration of
echo this session.
cd build
BUILD=$PWD
echo Build: $BUILD
cd ../src
SRC=""> cd ..
CLASSPATH=$BUILD:$SRC:.
export BUILD SRC CLASSPATH
echo Enviroment set up: OK
There is probably something dumb I'm not doing. My guess is that it is something to do with a shell script running in its own session. If that is the case, how do I overcome this? Any help appreciated.
Thanks,
Peter
|