file-attr-restore and dollar signs
wphooper at gmail.com
Thu Aug 31 22:06:33 GMT 2006
Thanks a lot for fixing this so quickly.
It's a useful program... I was having headaches trying to figure out how to
do something similar, and then I discovered the program.
On 8/31/06, Wayne Davison <wayned at samba.org> wrote:
> On Thu, Aug 31, 2006 at 09:50:50AM -0500, Pat Hooper wrote:
> > Anyway, I found a small bug in the script. file-attr-restore fails for
> > names with dollar signs.
> 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.)
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync