remote command word splitting

Damien Miller djm at
Thu Dec 2 14:32:33 EST 2004

Frederik Eaton wrote:
> Ah, I misunderstood where the splitting was done, sorry.
> Hmm. So, while I'm no longer as enthusiastic as I was about this idea,
> I still wonder if it wouldn't be cleaner if there were a way to get
> ssh to preserve the separation between remote command arguments
> itself, rather than asking the user to do protective quoting. How
> about an option to ask ssh to use 'execvp' rather than a shell? 

That would require a protocol extension: the protocol uses a single
string to pass the command whereas execv wants a vector of arguments.

This is possible to do, but it would be an openssh-only extension and
would need a button to switch it on. We really don't want to add more
buttons :)


More information about the openssh-unix-dev mailing list