<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 16, 2014 at 6:40 PM, Don Cohen <span dir="ltr"><<a href="mailto:don-rsync@isis.cs3-inc.com" target="_blank">don-rsync@isis.cs3-inc.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">An output line like asd\#002\#003zxc could either mean a file of that name or asd^B\#003zxc or asd^B^Czxc or asd\#002^Czxc<br>

</blockquote><div><br></div><div>Did you test that theory?  Give it a try and you'll discover that \# followed by 3 digits in a filename always encodes the backslash, so there is never an ambiguity in replacing \#NNN sequences in the output of filenames. Only full 5-char sequences are affected that way, so the decoding rule is as simple as:</div>

<div><br></div><div>  s/\\#(\d\d\d)/ chr(oct($1)) /eg;</div><br clear="all"><div>..wayne..</div></div></div></div>