lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Dec 19, 2012 at 9:43 PM, Rena <hyperhacker@gmail.com> wrote:

Use os.exit(n) in Lua and the $? variable in Bash:

$ lua5.1 -e 'os.exit(42)'; echo $?
42
Cool! Thanks.
 

or write all of the logic in a Lua script. ;-)


I wish. Unfortunately, I have to deal with C, bash, Make, etc.

Wei