Re: [dev] [dmenu] bug:

From: Suraj N. Kurapati <sunaku_AT_gmail.com>
Date: Fri, 9 Dec 2011 01:19:13 -0800

On Fri 09 Dec 2011 01:12:52 AM PST, Suraj N. Kurapati wrote:
> -) | exec ${SHELL:-"/bin/sh"}
> +) | exec ${SHELL:-"/bin/sh"} &

We can remove this outer exec entirely; it's a no-op on my system.

diff --git a/dmenu_run b/dmenu_run
index 35a4db3..2257ce0 100755
--- a/dmenu_run
+++ b/dmenu_run
_AT_@ -6,10 +6,11 @@ else
        cache=$HOME/.dmenu_cache
 fi
 (
+ echo -n "exec "
        IFS=:
        if [ "`ls -dt $PATH "$cache" | head -n 1`" != "$cache" ]; then
                lsx $PATH | sort -u | tee "$cache" | dmenu "$_AT_"
        else
                dmenu "$_AT_" < "$cache"
        fi
-) | exec ${SHELL:-"/bin/sh"}
+) | ${SHELL:-"/bin/sh"} &

-- 
If you want divine justice, die.
		-- Nick Seldon
Received on Fri Dec 09 2011 - 10:19:13 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 09 2011 - 10:24:05 CET