hi,
I use redhat 7.3 (2.4.18). But i can't set environment variable
in shell script. please check my code:
=============test=========
=
#!/bin/bash
CLASSPATH=/usr/test
export CLASSPATH
==========================
==
and in shell, i execute the commands:
# chmod +x test
# ./test
there is no error occured. but when i check use "#set", I can't
find CLASSPATH variable. What's the matter? How can i do?
any help will be very appreciated.
TIA.
-- lr
Start Free Trial