file-attr-restore and dollar signs

Robert Siemer Robert.Siemer-rsync at
Thu Aug 31 18:53:00 GMT 2006

> If you run:
> file-attr-restore foo$bar
> the shell will replace $bar with the contents of the $bar shell
> variable.  If $bar is empty, it would run "file-attr-restore foo".
> To get around this you need to either enclose the filename in quotes
> so the shell does not glob it, or turn off globbing in the shell.
> ie
> file-attr-restore "foo$bar"

I haven't even read the problem, but avoiding variable replacment in a
shell is done with single quotes:

file-attr-restore 'foo$bar'

Your example does not help here.


More information about the rsync mailing list