[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Return an exit code without os.exit()?
- From: Geoff Leyland <geoff_leyland@...>
- Date: Wed, 7 Oct 2009 21:02:17 +1300
Hi,
Is there a way to return an exit code from a Lua script without
calling os.exit()?
I'm using luacov, and if you call os.exit(), it doesn't write any
statistics. I'd also like my script to return 1 or 0. As far as I
can tell, the return value from a top-level script does not seem to be
used for an exit code, but hopefully someone can tell me I'm wrong.
Cheers,
Geoff