Matthew Dempsky | 2 Aug 2012 23:34
Favicon

Re: Shellscript escaping problem

On Thu, Aug 2, 2012 at 2:21 PM, Martijn Rijkeboer <martijn <at> bunix.org> wrote:
> RSYNC_CMD="/usr/local/bin/rsync -v -n \
>     --rsync-path='rsync sudo' \

This doesn't do what you think it does.  The single quotes are getting
literally passed to rsync, they're not reinterpreted after $RSYNC_CMD
is interpolated.

This is similar to running something like:

  rsync --rsync-path=\'rsync sudo\' backup <at> fqdn...


Gmane