Re: env array and get/putenv
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: env array and get/putenv

From: Arjen Markus <arjen.markus@wldelft.nl>
Date: Thu Sep 22 2005 - 11:02:12 CEST

There is an awful lot of magic involved with environment variables.
Just a quick question: do you store the new value of the environment
variables in a static string? It is easy to forget that and then the
whole exercise is null and void.

It may very well be that Tcl gets a copy of the environment at start-up
and is ignorant of any changes made outside of its interpreter. Perhaps
the C API can solve this?
-- just checked: you should indeed use Tcl_PutEnv() instead of putenv.

Regards,

Arjen
Received on Thu Sep 29 14:38:33 2005