2 Aug 2012 23:34
Re: Shellscript escaping problem
Matthew Dempsky <matthew <at> dempsky.org>
2012-08-02 21:34:06 GMT
2012-08-02 21:34:06 GMT
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...
RSS Feed