From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 09:36:07 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68C7716A4CE; Fri, 18 Feb 2005 09:36:07 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6926443D31; Fri, 18 Feb 2005 09:36:06 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j1I9ZsWv023239 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 18 Feb 2005 10:35:56 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j1I9Z455057540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2005 10:35:05 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j1I9Z4XP009732; Fri, 18 Feb 2005 10:35:04 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j1I9Z4HM009731; Fri, 18 Feb 2005 10:35:04 +0100 (CET) (envelope-from ticso) Date: Fri, 18 Feb 2005 10:35:03 +0100 From: Bernd Walter To: Stijn Hoop Message-ID: <20050218093502.GS753@cicely12.cicely.de> References: <4214F3C2.4020102@alumni.rice.edu> <20050217195547.GA33893@troutmask.apl.washington.edu> <86is4qfenb.fsf@xps.des.no> <20050218092709.GM8471@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050218092709.GM8471@pcwin002.win.tue.nl> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: Kaspars cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= cc: freebsd-current@freebsd.org cc: Robert Watson cc: Steve Kargl Subject: Re: Change tar to GNU X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 09:36:07 -0000 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 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. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de