Sander Huijsen spiffera, venerdì 19 dicembre 2008 circa:
> I guess there's more than one way to solve a problem. :)
>
> The initial setting of EVR was there just to show that you can also use
> the variable in the C program using getenv(). Your solution works fine
> if there's only one env var to set (apart from some other practical
> problems that may arise). When you want to set multiple env vars, it
> wouldn't work.

Well, in this case you can output the string to be evaluated. Something 
like: 
$ ./your_c_program
EVR1='foo'
EVR2='bar'
And then, you could simply do:
$ `./your_c_program` 
$ echo $EVR1
foo
to evaluate and use your variables.
(IMHO involving files doesn't follow the "keep simple and reusable" Unix 
phylosophy, anyway that discussion begins to become an "high theorical" 
discussion)

my 2cents.
-- 
Andrea Gasparini 
---- ImaVis S.r.l. ----
web: www.imavis.com

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to