Re: environment variables

export CVSROOT=:pserver:user server    
cvs co
make bla bla

on the other hand...

no way to implement something like `export' ?

export works becuase the script is run the context of the current
thread.  It still would need support from the windowmanger to use.  

try this to illustrate the difference:
om:[~/test]% cat                                                  

export EV=Elvis

om:[~/test]% sh ; echo $EV

om:[~/test]% . ; echo $EV 

In any case what you basically want to do it send an environment
variable to your parent process, which is a totally different thing.

Brett Nash <nash nash nu>
Sometimes it's better to light a flamethrower than curse the darkness.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]