file-attr-restore and dollar signs
Matt McCutchen
hashproduct+rsync at gmail.com
Thu Aug 31 23:46:08 GMT 2006
On 8/31/06, Wayne Davison <wayned at samba.org> 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.
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: far-bs-bs.diff
Type: text/x-patch
Size: 294 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20060831/3f90d907/far-bs-bs.bin
More information about the rsync
mailing list