From 05d51d86931701aef93cc7ca9106c4713c316e6a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Jul 2018 15:55:39 +0530 Subject: [PATCH] Fix #730 --- kittens/ssh/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/ssh/main.py b/kittens/ssh/main.py index d2b7471da..270af690c 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -102,7 +102,7 @@ def main(args): sh_script = SHELL_SCRIPT.replace('TERMINFO', terminfo, 1) if len(server_args) > 1: command_to_execute = ["'{}'".format(c.replace("'", """'"'"'""")) for c in server_args[1:]] - command_to_execute = 'cmd=({}); exec "$cmd"'.format(' '.join(command_to_execute)) + command_to_execute = 'exec ' + ' '.join(command_to_execute) else: command_to_execute = '' sh_script = sh_script.replace('EXEC_CMD', command_to_execute)