remote command word splitting

Frederik Eaton frederik at a5.repetae.net
Thu Dec 2 15:48:24 EST 2004


On Thu, Dec 02, 2004 at 02:32:33PM +1100, Damien Miller wrote:
> 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.

Oh, ick.

> 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 :)

Well, OK. I back down.

I guess the only other thing is that the man page could mention the
issues for newbies and include an example wrapper function in sh? But
it's not a big deal to me.

Best regards,

Frederik




More information about the openssh-unix-dev mailing list