shithub: sox

ref: aba404c96e311738b9bc12fcf24477c2a413db04
dir: /lua/test/env.lua/

View raw version
-- 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)