Re: os.execute returns mangled exit code on linux
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: os.execute returns mangled exit code on linux
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2013年1月18日 22:32:06 -0200
> This was first mentioned on the mailing list in 2004, but the bug still
> exists today :
> print( os.execute("exit 1") )
> 256
In both Mac OS X and Linux I get this with Lua 5.2.1:
% lua
Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> print( os.execute("exit 1") )
nil exit 1