Vladimir A. Pavlov <[email protected]> ha escrit:

> If I have a file "-b b" in tar, the only way to include it via --files-from 
> is by line:
> --add-file="-b b"
[...]
> Is it the expected behaviour?

Yes, it is.  As described in GNU tar manual, section 6.3 "Reading Names
from a File" [1]:

  In the file list given by `-T' option, any file name beginning with `-'
  character is considered a `tar' option and is processed accordingly.
  For example, the common use of this feature is to change to another
  directory by specifying `-C' option:

> It would be much easier if one could force tar to consider the whole line as 
> file
> name.

I agree that an option to that effect is needed.  I'll implement one and
let you know when it is available.

Regards,
Sergey

[1] http://www.gnu.org/software/tar/manual/html_section/tar_48.html
  

Reply via email to