On Tue, 2006-02-21 at 09:07 +0200, Sergey Poznyakoff wrote: > Helmut Waitzmann <[EMAIL PROTECTED]> wrote: > > So I've to change the shell command > > tar -t -f archive1.tar | my_filter_filename_list | \ > > tar -c -f archive2.tar --files-from=- --no-recursion > > No, you have not. Use it as you did before.
I agree with Helmut. If the first archive contains files whose names look like tar options, the second tar will now interpret them as options, which is not desired. I think it would make much more sense to have separate --files-from and --actions-from options as he proposes. Another possibility is to ask tar to quote its -t output and then have it strip quotes when processing --files-from lists, but this requires a lot of additional work when a --files-from list comes from a source other than tar. -- Matt McCutchen [EMAIL PROTECTED] http://hashproduct.metaesthetics.net/ _______________________________________________ Bug-tar mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-tar
