[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request for 5.2; make exit codes from popen()ed programs obtainable
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 2 Sep 2009 19:01:18 +0200
On Wed, Sep 2, 2009 at 6:46 PM, <delbu9c1@erau.edu> 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.