On Mon, Jun 09, 2008 at 02:57:30PM +0200, Peter Hartlich wrote: > I've attached a patch against hg tip that makes spawn() use a > NULL-terminated char pointer array for the argument, which is > execvp'd directly instead of going through the shell.
The reason for going through the shell is simply because users demanded to have their shell profile evaluated if a command is invoked. With you solution /bin/sh -c must be prefixed into these commands to have the same effect. I prefer the old way, even if your spawn() simplification is less code. Anyone disagrees? Kind regards, -- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
