Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setting env variables issue from shell script

441868Sep 18 2005 — edited Oct 28 2005
It is common by editting .login .profiles to set session environment variables. Now I want to do it by executing a shell file after startup.

setenv.sh
------------------
#!/bin/tcsh
setenv LANG ja_JP.utf8
setenv LC_ALL ja_JP.utf8
------------------

I try
chmod a+x setenv.sh
./setenv.sh
the script run, but checking session environment, variables LANG, LC_ALL not changed.

if it is
source setenv.sh
the script run and got the changed environment variables.

I don't know the reason, but I really need the first run style in my ant project.
Anyone could help it? Thanks very much

Alvin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2005
Added on Sep 18 2005
3 comments
1,572 views