"-signs in rsync as well as in embedded ssh command

Paul Slootman paul at debian.org
Fri Oct 21 17:02:06 GMT 2005


On Fri 21 Oct 2005, Matt McCutchen wrote:
> > > 
> > > The trouble is that rsync parses the "-e" command into arguments, and it
> > > just splits at every whitespace character without regard for the inner
> > > quotes.  Maybe rsync should really be calling on a shell to parse the
> > > command.
> > 
> > Would escaping the spaces perhaps also work (in addition to the wrapper
> > script)?
> 
> No; rsync splits the command at space characters without observing any
> of the more sophisticated conventions, such as quoting or escaping, that
> shells do.  Here's the relevant excerpt from rsync/main.c :

How about tabs? :-)


Paul Slootman


More information about the rsync mailing list