Commit 7875d1b9 authored by Andrew Gillham's avatar Andrew Gillham

Explicitly call /bin/sh for compatibility with non POSIX shells.

The fish shell doesn’t support ‘||’ and requires a ‘—python python’
workaround.  This change explicitly calls /bin/sh for the remote shell
commands.
parent 2b0d0065
......@@ -108,8 +108,8 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
if python:
pycmd = "'%s' -c '%s'" % (python, pyscript)
else:
pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; "
"exec \"$P\" -c '%s'") % pyscript
pycmd = ("exec /bin/sh -c \'P=python3.5; $P -V 2>/dev/null || P=python; "
"exec \"$P\" -c \\'%s\\'\'") % pyscript
argv = (sshl +
portl +
[rhost, '--', pycmd])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment