| 139 | |
| 140 | |
| 141 | static 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 | |
| 153 | static int os_remove (lua_State *L) { |
nothing calls this directly
no test coverage detected