lua interpreter to return a value to shell
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: lua interpreter to return a value to shell
- From: Grizzly Bear <6grizzlybear@...>
- Date: 2012年12月19日 21:41:21 -0800
My script, a.lua, starts with
#!/usr/local/bin/lua
as the first line, i.e., using the interpreter coming with lua-5.1.5,
how can I make the script return a value to indicate success or failure?
That is, I'd like to do under bash
$ if ./a.lua; then echo "success"; fi
Thanks.
Wei