file-attr-restore and dollar signs

Matt McCutchen hashproduct+rsync at
Thu Aug 31 23:46:08 GMT 2006

On 8/31/06, Wayne Davison <wayned at> wrote:
> No, escape sequences are not parsed in a single-quoted string in perl
> (with the exception of \' and \\).  What is needed is a way to turn off
> variable interpolation while not disabling backslash decoding.  There
> might be a way to do that more easily than my current solution, but I
> can't remember it if there is.

OK, that makes sense.  However, you need to backslash backslashes
themselves in addition to $, @, and %.  Otherwise the script
interpolates $fn if the input contains a filename "foo\$fn".  Attached
is a patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: far-bs-bs.diff
Type: text/x-patch
Size: 294 bytes
Desc: not available
Url :

More information about the rsync mailing list