Anselm R. Garbe --> dwm (2008-04-08 10:57:20 +0200):
> Hi,
> 
> On Mon, Apr 07, 2008 at 10:51:15PM +0200, Peter Hartlich wrote:
> > dmenu_run.patch:
> >     - replace $* with "$@" so dmenu_run -p "foo bar" works
> 
> I applied this patch with Jukka's remark.

Thanks.

BTW, $exe should also be quoted (see attached patch).


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
diff -r 787ec648ffef dmenu_run
--- a/dmenu_run Wed Apr 09 23:32:46 2008 +0100
+++ b/dmenu_run Thu Apr 10 17:31:51 2008 +0200
@@ -1,2 +1,2 @@
 #!/bin/sh
-exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe
+exe=`dmenu_path | dmenu ${1+"$@"}` && exec "$exe"

Reply via email to