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