lua-users home
lua-l archive

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


On Thu, Dec 20, 2012 at 12:58 AM, Grizzly Bear <6grizzlybear@gmail.com> wrote:
> 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

Well, Lua has os.execute and io.popen, so technically you probably
could. It might be ugly though...

-- 
Sent from my Game Boy.