mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-10 01:51:09 +00: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:
parent
1c25ed7666
commit
98ae2ac96a
1 changed files with 1 additions and 1 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue