Shopify/go-lua

os.getenv should return nil for a missing env var

fbogsany opened this issue · 3 comments

According to the Lua reference manual, os.getenv should return nil if the env var doesn't exist. Instead it returns an empty string.

Is this still an issue? Right now the function mapped to getenv is returning a int value, so are you referring to not not push the empty string into the state's stack and returning a 0 value?

This was fixed. Closing.