On Thu, Jun 02, 2016 at 08:53:49AM +1000, Darren Tucker wrote:
> > i'm inclined to disagree with this diff, for the following reasons:
> 
>  - other than the concatenation with spaces, it's not a behaviour of ssh(1)
> but of the server at the other end of the connection, which might use sh -c
> or might do something completely different depending on the server.

The ssh(1) man page is already documenting quite exhaustively the behaviour
of the server at the other end; it is assumed that you're connecting to
a real ssh server. If that's not the case, there are a lot of things
from that man page that do not work (just try ssh -R 0:host:port with a
dropbear server).

And please notice that's it's not sh -c as in system(3) or popen(3); if
you have /foo/bar as your login shell in /etc/passwd, it's /foo/bar -c.

Reply via email to