[plt-scheme] set environment variables in subprocess

From: YC (yinso.chen at gmail.com)
Date: Wed Jan 13 22:34:47 EST 2010

On Wed, Jan 13, 2010 at 6:49 PM, Eli Barzilay <eli at barzilay.org> wrote:

> It seems that this makes it easy to reflect the environment as
> something like a parameter that holds an immutable hash table, then
> re-route all `getenv'/`putenv' through to it, and make `subprocess'
> translate the hash back into whatever the system call expects, caching
> the result based on the hash identity.

That would be cool.  An additional implication of this approach is that we
then can iterate through the environment variables, unlike getenv today,
which requires knowing the keys in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100113/f6973eb5/attachment.html>

Posted on the users mailing list.