<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Oct 29, 2016 at 5:36 AM, Samuel Williams <span dir="ltr"><<a href="mailto:space.ship.traveller@gmail.com" target="_blank">space.ship.traveller@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The command<br>
<span class=""><br>
ssh -l backup -i /etc/synco/id_rsa -o ConnectTimeout\=60 -o BatchMode\=yes<br>
<br>
</span>Is a correct and valid shell command.<br></blockquote><div><br></div><div>It is, but there is no shell involved, and assuming that a shell is being used is invalid. Adding backslash escaping now could potentially screw up anyone currently passing a backslash in their existing rsync scripts (a small group of people, but probably non-zero). It's tempting to go ahead and do this, but I think I'll just leave it as it is.</div><div><br></div><div>If you want to work around that buggy escaping library, you could change "ssh" to "ssh-nobs" and put the following into that file:</div><div><br></div><div>#!/usr/bin/perl</div><div>exec 'ssh', map { s/\\(.)/$1/g; $_ } @ARGV;</div><div><br></div><div>That adds backslash removal on the way to the ssh.  It does not allow you to backslash escape spaces, though, but someone could extend the script to support that.</div><div><br><div><div class="gmail_signature" data-smartmail="gmail_signature">..wayne..</div></div>
 </div></div></div></div>