Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git] / com32 / lua / 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)