lua-users home
lua-l archive

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


> > 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)