file-attr-restore and dollar signs

Matt McCutchen hashproduct+rsync at gmail.com
Thu Aug 31 20:47:31 GMT 2006


On 8/31/06, Wayne Davison <wayned at samba.org> wrote:
> Yeah, you're right.  The code uses an eval of a string in double quotes
> in order to get all the normal perl decoding, such a \f, \033, and \".
> However, it needs to escape '$', '@', and '%' to prevent perl from
> treating those characters as variable references.  (Hopefully there is
> not anything else that needs to be backslashed-escaped.)

Wouldn't it be easier to just use a single-quoted string?  That gives
you escape sequences but not variable references.

Matt


More information about the rsync mailing list