env(), where the argument you pass is the name of the environment variable. Works like a charm. #!/usr/bin/lua local user = os.getenv("USER") print ...
確定! 回上一頁