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

Function os_execute

third-party/lua-5.5.0/src/loslib.c:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143static int os_execute (lua_State *L) {
144 const char *cmd = luaL_optstring(L, 1, NULL);
145 int stat;
146 errno = 0;
147 stat = l_system(cmd);
148 if (cmd != NULL)
149 return luaL_execresult(L, stat);
150 else {
151 lua_pushboolean(L, stat); /* true if there is a shell */
152 return 1;
153 }
154}
155
156
157static 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