A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/lunarmodules/lua-compat-5.3/wiki/os.execute below:

os.execute · lunarmodules/lua-compat-5.3 Wiki · GitHub

os.execute in Lua 5.2 and 5.3 returns three values: a boolean indicating sucessful/unsuccessful execution, a string ("exit" or "signal"), and the actual exit status or signal number. To portably distinguish between normal exit and exit by signal, as well as for detecting the signal number or exit status, you need platform specific preprocessor macros (like WEXITSTATUS() in POSIX). Since the compatibility implementation for Lua 5.1 is written in pure Lua and does not have access to those preprocessor macros, the exit status or signal number is probably not correct on all platforms (actually it probably is correct only on Linux).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4