diff --git a/rc/windowing/wayland.kak b/rc/windowing/wayland.kak index ea8de71d..17654f6a 100644 --- a/rc/windowing/wayland.kak +++ b/rc/windowing/wayland.kak @@ -39,7 +39,10 @@ The program passed as argument will be executed in the new terminal' \ echo "fail 'termcmd option is not set'" exit fi - setsid ${kak_opt_termcmd} "$kak_quoted_reg_a" < /dev/null > /dev/null 2>&1 & + termcmd=$kak_opt_termcmd + args=$kak_quoted_reg_a + unset kak_opt_termcmd kak_quoted_reg_a + setsid ${termcmd} "$args" < /dev/null > /dev/null 2>&1 & } } } diff --git a/rc/windowing/x11.kak b/rc/windowing/x11.kak index a6f7da87..c92972a7 100644 --- a/rc/windowing/x11.kak +++ b/rc/windowing/x11.kak @@ -44,7 +44,10 @@ The program passed as argument will be executed in the new terminal' \ echo "fail 'termcmd option is not set'" exit fi - setsid ${kak_opt_termcmd} "$kak_quoted_reg_a" < /dev/null > /dev/null 2>&1 & + termcmd=$kak_opt_termcmd + args=$kak_quoted_reg_a + unset kak_opt_termcmd kak_quoted_reg_a + setsid ${termcmd} "$args" < /dev/null > /dev/null 2>&1 & } } }