Re: [dev] [PATCH] dmenu_run: Don't leave a shell running

From: Truls Becken <truls.becken_AT_gmail.com>
Date: Tue, 16 Apr 2013 16:12:13 +0200

On 2013-04-16, at 10:17, Ross Lagerwall wrote:

> -dmenu_path | dmenu "$_AT_" | ${SHELL:-"/bin/sh"} &
> +exec "$(dmenu_path | dmenu "$_AT_")"

On 2013-04-16, at 15:47, Ross Lagerwall wrote:

> -dmenu_path | dmenu "$_AT_" | ${SHELL:-"/bin/sh"} &
> +eval "exec "$(dmenu_path | dmenu "$_AT_")

To not screw up the argument passing, you could just have dropped the quotes around $(), as in:

exec $(dmenu_path | dmenu "$_AT_")

-Truls
Received on Tue Apr 16 2013 - 16:12:13 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2013 - 16:24:04 CEST