On Sat, Sep 09, 2006 at 10:23:05PM +0200, Joachim Schipper wrote: > On Sat, Sep 09, 2006 at 12:30:27PM -0500, Matthew R. Dempsky wrote: > > Does OpenBSD have a popen(3) replacement but with an exec(3)-like > > interface instead of a system(3)-like one? > > Not really, IIRC; using pipe() and exec() is the way to go...
That's what I suspected. I could image it worth while, however, to have a popen_execl (or whatever) function to let you avoid dealing with shell quoting. (On the other hand, I'm pretty comfortable using pipe/fork/exec, so I don't know how big of an issue this is in practice.)