Re: [hackers] [dmenu][PATCH] dmenu_run: run "exec program" instead of "program" in shell

2020-11-10 Thread Hiltjo Posthuma
On Tue, Nov 10, 2020 at 11:09:24PM +0100, наб wrote:
> This means that for long-running programs the process tree is
> /init → program instead of /init → /bin/sh → program
> ---
> Please keep me in CC
> 
>  dmenu_run | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dmenu_run b/dmenu_run
> index 834ede5..9a68aa8 100755
> --- a/dmenu_run
> +++ b/dmenu_run
> @@ -1,2 +1,2 @@
>  #!/bin/sh
> -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
> +dmenu_path | dmenu "$@" | sed 's/^/exec /' | ${SHELL:-"/bin/sh"} &
> -- 
> 2.29.2

No this has been sent before. The current behaviour stays the default.

-- 
Kind regards,
Hiltjo


signature.asc
Description: PGP signature


[hackers] [dmenu][PATCH] dmenu_run: run "exec program" instead of "program" in shell

2020-11-10 Thread наб
This means that for long-running programs the process tree is
/init → program instead of /init → /bin/sh → program
---
Please keep me in CC

 dmenu_run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dmenu_run b/dmenu_run
index 834ede5..9a68aa8 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -1,2 +1,2 @@
 #!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+dmenu_path | dmenu "$@" | sed 's/^/exec /' | ${SHELL:-"/bin/sh"} &
-- 
2.29.2


signature.asc
Description: PGP signature