Sign in
nest-open-source
/
nest-learning-thermostat
/
5.1.8
/
lua
/
b04178c06419fdce3a718b435a91eaf1eaa44148
/
.
/
lua-5.1.4
/
test
/
env.lua
blob: 9e62a57fbf0865170eeae3a38464044716c9fa5b [
file
] [
log
] [
blame
]
-- 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
)