MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / os_execute

Function os_execute

third-party/lua-5.3.5/src/loslib.c:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141static int os_execute (lua_State *L) {
142 const char *cmd = luaL_optstring(L, 1, NULL);
143 int stat = system(cmd);
144 if (cmd != NULL)
145 return luaL_execresult(L, stat);
146 else {
147 lua_pushboolean(L, stat); /* true if there is a shell */
148 return 1;
149 }
150}
151
152
153static int os_remove (lua_State *L) {

Callers

nothing calls this directly

Calls 2

luaL_execresultFunction · 0.70
lua_pushbooleanFunction · 0.70

Tested by

no test coverage detected