change environment variable via script

Darrin Chandler dwchandler at stilyagin.com
Fri Dec 23 10:44:31 MST 2005


Alex Dean wrote:

> On Dec 23, 2005, at 9:21 AM, Darrin Chandler wrote:
>
>> export CVSROOT
>>
>> Each shell gets a copy of the environment. Mods are local by  
>> default. Think about it a moment and you'll see why it must be that  
>> way.
>
>
> The script already did 'export CVSROOT', with no effect.
>
>
> On Dec 23, 2005, at 9:17 AM, Scott wrote:
>
>> The script itself is a shell session, so as soon as it ends, all  
>> information contained within would be eliminated and not carried  
>> over to your current environment.  A solution is to functionalize  
>> the script, like this:
>
>
> That did it, thanks!


Didn't actually look closely at your script. Oops. Glad you found the 
answer without me!

-- 
Darrin Chandler
dwchandler at stilyagin.com
http://www.stilyagin.com/



More information about the PLUG-discuss mailing list