Re: [dwm] [patch] spawn without shell

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon, 9 Jun 2008 15:02:18 +0200

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
Received on Mon Jun 09 2008 - 15:02:18 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:47:40 UTC