comments with '#' in --files-from

Felipe Alvarez felipe.alvarez at gmail.com
Mon Mar 9 10:56:41 GMT 2009


On Mon, Mar 9, 2009 at 3:36 PM, Matt McCutchen <matt at mattmccutchen.net> wrote:
> On Sun, 2009-03-08 at 11:14 +1000, Felipe Alvarez wrote:
>> I'm using --files-from=FILE. 'FILE' contains some lines beginning with
>> '#' for comments, but rsync thinks they are files. Are comments
>> supported in --files-from=FILE?
>
> The documentation doesn't say.  From the code, it looks like comments
> (as lines beginning with '#' or ';') are supported but are buggy on
> remote runs (probably what you are seeing).
>
> Since a major purpose of --files-from is to specify arbitrary filenames
> safely, I think comments should not be supported, at least not when
> --from0 is specified.  Wayne?  Once this is decided, I can make any
> necessary fixes.
>
> --
> Matt
>
>

Couldn't # be escaped if it were present in an 'arbitrary' filename so
that a regular plain # would act as a comment?


More information about the rsync mailing list