--On Wednesday, October 29, 2008 08:21:46 AM -0400 James Carlson <james.d.carlson at Sun.COM> wrote:
> One nit, though: I don't like the name exec_system(). Nor do I. I rather like perl's approach to this, which was to call the corresponding function... "system". That is, perl's system(), when called with multiple arguments, uses the argument directly as the argv array without quoting. Obviously we can't do the same overloading here, but once we get rid of the broken 0xff-quoting split-on-whitespace nonsense and move to varargs, I'd think it would be pretty natural to call it "systeml". This, of course, also opens the door to other variants such as "systemv" (takes char **argv) or even "vsystem" (takes a va_list). -- Jeff