Re: [dev] [dwm] Re: SHCMD(cmd): this may be a stupid question, but...

2010-01-07 Thread Szabolcs Nagy
On 1/6/10, Thayer Williams wrote: > { MODKEY, XK_z, spawn, BASHCMD("commandname") }, > s/BASHCMD/SHCMD/;s/commandname/shell script/ spawn used to run the specified command in a shell in ancient dwm, so SHCMD macro is a convenience and backward compatibility feature in the default config

[dev] [dwm] Re: SHCMD(cmd): this may be a stupid question, but...

2010-01-06 Thread Thayer Williams
On Jan 06, 2010 at 10:06 AM, Thayer Williams wrote: > What does this line do exactly? > > /* helper for spawning shell commands in the pre dwm-5.0 fashion */ > #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } > > I always assumed it was a way of launching applications wi