Hi,
My original shell is csh, I don't likw it, so I have to run bash every time after I login, the problem is I have a script like
export PLOG=$1,
every time I run the script under bash, the PLOG won't be set, I know I can use source to set the PLOG, is there any other way to do it?
thanks.
peter
If I get what you want: put any commands you need to execute in a file .bashrc in your home directory. Every time the shell starts it will read/execute the file, just as if you were to source it.
When you execute the script, try using this syntax to make the environment variable which you set in the script stay in the environment.
. ./scriptname
(Dot space dot slash scriptname).