[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: whatever happened to io.popen() ?
- From: Adrian Perez <elflord@...>
- Date: Thu, 02 Sep 2004 19:48:12 +0200
El jue, 02-09-2004 a las 19:19, Rob Kendrick escribió:
> [...] What's wrong with just having another flag in the
> userdata to say it's a popen, rather than guessing when you call close(), I
> don't know.
That's the way to fix the problem, instead of relying in
implementation-specific behaviour of fclose/pclose. If popen has to live
in the standard IO library, this fix should be done.
I have found io.popen to be very useful, too.