location /getPath { content_by_lua 'ngx.say(os.getenv("PATH"))'; ... https://github.com/openresty/lua-nginx-module#system-environment-variable-support ... ... <看更多>
Search
Search
location /getPath { content_by_lua 'ngx.say(os.getenv("PATH"))'; ... https://github.com/openresty/lua-nginx-module#system-environment-variable-support ... ... <看更多>
local secret = os.getenv("PATH") assert(secret ~= nil, "Environment variable PATH not set") ... ... <看更多>
Example setenv.lua ... 'greek') -- this will still be nil -- but child processes can see this variable ... os.execute [[lua -e "print(os.getenv('greek'))"]]. ... <看更多>
I don't use lua in Vim but I know you can examine environment variables with os.getenv() so, for instance, this will print the expected ... ... <看更多>
Random test failures in t/stream/os-getenv-hup.t. ... response is expected (repeated req 0, req 0)' # at /home/agentzh/git/lua-resty-core.orig/. ... <看更多>