From 6e921300e2324b223397b9fae9902158583c89fc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 8 Mar 2022 19:49:25 +0530 Subject: [PATCH] Let ssh concat the cli args for us --- 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 2458c98c8..83a9e9560 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -400,7 +400,7 @@ def get_remote_command( sh_script = bootstrap_script( script_type='py' if is_python else 'sh', remote_args=remote_args, ssh_opts_dict=ssh_opts_dict, cli_hostname=cli_hostname, cli_uname=cli_uname) - return [f'{interpreter} -c {shlex.quote(sh_script)}'] + return [interpreter, '-c', shlex.quote(sh_script)] # sshd concats args with a space and passes them to login-shell -c def main(args: List[str]) -> NoReturn: