lua-users home
lua-l archive

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


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