Change tar to GNU

Stijn Hoop stijn at win.tue.nl
Fri Feb 18 09:38:59 GMT 2005


On Fri, Feb 18, 2005 at 10:35:03AM +0100, Bernd Walter wrote:
> On Fri, Feb 18, 2005 at 10:27:09AM +0100, Stijn Hoop wrote:
> > On Fri, Feb 18, 2005 at 09:36:40AM +0100, Dag-Erling Smørgrav wrote:
> > > Steve Kargl <sgk at troutmask.apl.washington.edu> writes:
> > > > find $PATH -newermt 20050214 | xargs tar cf new.tar
> > > 
> > > Bad idea, for a number of different reasons (including file names
> > > containing spaces or other special characters, and command line length
> > > limits).  The following is slightly better, but will still fail if you
> > > have files with newlines in them:
> > > 
> > > find $PATH -newermt 2005-02-14 | tar -c -f new.tar -T/dev/stdin
> > 
> > Won't find -print0 | xargs -0 ... work in all cases?
> 
> xargs possibly starts tar several times and tar overwrites the archive
> every time.
> Even if you get tar to append to an existing archive it can't know
> about hardlinked files spanning multiple calls.

Ah, I see. Thanks for the explanation!

--Stijn

-- 
What would this sentence be like if it weren't self-referential?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050218/2279d40e/attachment.bin


More information about the freebsd-current mailing list