From 98ae2ac96aceba214950fc3df1591d47135ed0dc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Jun 2021 16:43:59 +0530 Subject: [PATCH] ssh kitten: Use sh rather than /bin/sh It's not actually required that sh be in /bin. The hope is that fewer users alias sh to non POSIX things than put sh in places other than /bin --- 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 42ca7d389..6a53b1d9e 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -242,7 +242,7 @@ def get_posix_cmd(terminfo: str, remote_args: List[str]) -> List[str]: args = [c.replace("'", """'"'"'""") for c in remote_args] command_to_execute = "exec $login_shell -c '{}'".format(' '.join(args)) sh_script = sh_script.replace('EXEC_CMD', command_to_execute) - return [f'/bin/sh -c {shlex.quote(sh_script)}'] + return [f'sh -c {shlex.quote(sh_script)}'] def get_python_cmd(terminfo: str, command_to_execute: List[str]) -> List[str]: