* lib/lua/test: Add.
This commit is contained in:
parent
149a0ba1d9
commit
e8ac11b670
21 changed files with 531 additions and 0 deletions
7
trunk/lib/lua/test/env.lua
Normal file
7
trunk/lib/lua/test/env.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- read environment variables as if they were global variables
|
||||
|
||||
local f=function (t,i) return os.getenv(i) end
|
||||
setmetatable(getfenv(),{__index=f})
|
||||
|
||||
-- an example
|
||||
print(a,USER,PATH)
|
||||
Loading…
Add table
Add a link
Reference in a new issue