On Tue, 15 Mar 2005 19:40:23 +0000 (UTC), Tuomo Valkonen <[EMAIL PROTECTED]> 
wrote:
> On 2005-03-15, Matthieu Moy <[EMAIL PROTECTED]> wrote:
> > (surprisingly, there's a os.getenv() in lua, but i didn't find a
> > setenv - but I may have missed it)
> 
> Lua tries to be pure ANSI-C, and os.setenv is not in it. (However, it does
> support io.popen and such that are also not ANSI-C...).
> 
> Hmm... I'd rather have this added in Lua, as it clearly belongs there,
> but we shall see...

lhf's lposix[1] library implements setenv.

[1] http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lposix

-- 
Zachary P. Landau <[EMAIL PROTECTED]>

Reply via email to