"Sergey Poznyakoff" <[EMAIL PROTECTED]> writes: >Matt McCutchen <[EMAIL PROTECTED]> wrote: > >> 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. > >There's nothing new here, you'd get the same behavior with tar 1.13.25 >(and even with 1.11) if any of your files happened to begin with -C.
You are right: $ tar --version tar (GNU tar) 1.15.1 $ printf '%s\n' -C nothing | tar --files-from=- -c -f archive.tar tar: nothing: Cannot chdir: No such file or directory tar: Error is not recoverable: exiting now $ printf '%s\0' -C nothing | tar --files-from=- -c -f archive.tar --null tar: -C: Cannot stat: No such file or directory tar: nothing: Cannot stat: No such file or directory tar: Error exit delayed from previous errors Will this behavior stay the same with new gnu tar, too? -- Wenn Sie mir E-Mail schreiben, stellen | When writing me e-mail, please Sie bitte vor meine E-Mail-Adresse | precede my e-mail address with meinen Vor- und Nachnamen, etwa so: | my full name, like Helmut Waitzmann <[EMAIL PROTECTED]>, (Helmut Waitzmann) [EMAIL PROTECTED] _______________________________________________ Bug-tar mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-tar
