Re: environment variables



#!/bin/bash
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 test42.sh                                                  

export EV=Elvis

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

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

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

        Regards,
        nash
-- 
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]