mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
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
This commit is contained in:
@@ -242,7 +242,7 @@ def get_posix_cmd(terminfo: str, remote_args: List[str]) -> List[str]:
|
|||||||
args = [c.replace("'", """'"'"'""") for c in remote_args]
|
args = [c.replace("'", """'"'"'""") for c in remote_args]
|
||||||
command_to_execute = "exec $login_shell -c '{}'".format(' '.join(args))
|
command_to_execute = "exec $login_shell -c '{}'".format(' '.join(args))
|
||||||
sh_script = sh_script.replace('EXEC_CMD', command_to_execute)
|
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]:
|
def get_python_cmd(terminfo: str, command_to_execute: List[str]) -> List[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user