> 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. Bye, Robert -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html