Michael <[email protected]> ha escrit:

> True.

That's what I meant.

> But that's not how tar behaves when used without
> listed-incremental option. Without it, it only puts in /dev directory
> entry and nothing else, not even the files immediately under it.
> It's that behaviour I find useful when compiling my own list of files
> and folders and passing them to tar.

It is impossible to implement in listed-incremental mode, because it
contradicts the basic principles of this mode. Listed-incremental
operates on *directories*, not files. Implementing --no-recursion the
way you propose would render it useless.

Although currently it is possible to specify regular files on the
command line in listed-incremental mode, this is not recommended and
will probably be removed in future releases. In other words, doing
something like:

  find . -type f | tar --listed-incremental -c -f archive -T -

is wrong.  

The only feasible semantics of "--listed-incremental --no-recursive" I can
think of is ``do not descend into subdirectories more than on level 1'',
which was implemented in this patch.

Regards,
Sergey



Reply via email to