Add the Lua distibution from http://www.lua.org/ftp/lua-5.1.4.tar.gz
[Samba/gebeck_regimport.git] / source3 / lua-5.1.4 / test / env.lua
blob9e62a57fbf0865170eeae3a38464044716c9fa5b
1 -- read environment variables as if they were global variables
3 local f=function (t,i) return os.getenv(i) end
4 setmetatable(getfenv(),{__index=f})
6 -- an example
7 print(a,USER,PATH)