[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute is scary; Jay rants about strings again (was Re: [ANNOUNCE] lua stdlibs release: now Lua 5 compatible)
- From: Reuben Thomas <rrt@...>
- Date: Sat, 31 Jan 2004 22:11:32 +0100 (CET)
> > Would that stop you needing to use the shell?
>
> Yeah. The notional popen2.lua would fork and execve the child process
> attached through file descriptors. The posix module then implements
> posix.fdopen(fd, mode) in terms of luaIO_filecreate, and then returns a
> filehandle userdata to the caller.
Since that would obviate the need for scary shellery, that seems a better
route to go (and another good reason to add some openness to iolib).
--
http://www.mupsych.org/~rrt/ | Slow Pedestrian Crossing (Anon)