bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tar 1.13 --exclude strangeness


From: Ambrose Li
Subject: tar 1.13 --exclude strangeness
Date: Thu, 6 Mar 2003 09:22:10 -0500
User-agent: Mutt/1.2.5i

Hi,

suppose the current directory is foo and I want to create a tar
file bar.tar.gz inside the current directory.

If I do a (cd .. && tar foo/bar.tar.gz --exclude foo/\*.tar.gz)
or even (cd .. && tar foo/bar.tar.gz --exclude foo/bar.tar.gz)

tar 1.13 will complain something like

   tar: foo/bar.tar.gz: file changed as we read it
   tar: Error exit delayed from previous errors

and exit with a failure status code (though the tar file is
still created). However, tar 1.11.8 will happily create the
archive (without the excluded file).

Since I told tar to exclude foo/bar.tar.gz, I am puzzled why
it would want to read the file.

Is this a bug in the newest tar, or have I misunderstood what
the --exclude option does?

Thanks,

-- 
Ambrose LI Cheuk-Wing  <address@hidden>

http://ada.dhs.org/~acli/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]