lua-users home
lua-l archive

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

On Wed, Sep 2, 2009 at 6:46 PM, <> wrote:
> I'm not sure I see a benefit to it being a second return. Nil is false and all numbers are true so existing functionality should remain in tact.

I don't think we need fool with io.popen(), just define a pclose()
method on file streams that returns the error code.  You may easily
get output from a 'failed' process, and you won't know the status code
anyway until the stream is finished.

steve d.