NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/41168 (tar treats lines in files supplied to -X as globs)
The following reply was made to PR bin/41168; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: "Perry E. Metzger" <perry%piermont.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost,
joerg%NetBSD.org@localhost
Subject: Re: bin/41168 (tar treats lines in files supplied to -X as globs)
Date: Sat, 20 Feb 2010 16:40:49 +0100
On Sat, Feb 20, 2010 at 10:25:01AM -0500, Perry E. Metzger wrote:
>
> joerg%NetBSD.org@localhost writes:
> > Synopsis: tar treats lines in files supplied to -X as globs
> >
> > State-Changed-From-To: open->feedback
> > State-Changed-By: joerg%NetBSD.org@localhost
> > State-Changed-When: Sat, 20 Feb 2010 03:40:50 +0000
> > State-Changed-Why:
> > GNU tar 1.22 at least documents the same behavior as implemented
> > by pax-as-tar, namely that -X lists a file of exclude patterns.
> > Therefore I would change this from an implementation bug to
> > a documentation bug. Opinion?
>
> Why don't you try them both and see. I think you'll find that they do
> not behave compatibly and that this makes lots of things fail. In
> particular, my system backup scripts fail using the native tar.
The only difference I see between gtar-base-1.22 and pax-as-tar with -X
is that GNU tar mishandles the case of no match at all. Otherwise they
behave identical.
cd /
echo 'b*' > /tmp/excludes
$TAR -cf /tmp/test.tar -X tmp/excludes ./altroot ./bin
$TAR -tf /tmp/test.tar
Joerg
Home |
Main Index |
Thread Index |
Old Index