From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 11:07:15 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 A19CE16A4CE; Fri, 18 Feb 2005 11:07:15 +0000 (GMT) Received: from www.portaone.com (support.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56CEA43D2D; Fri, 18 Feb 2005 11:07:14 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.0.128] ([192.168.2.2]) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j1I9dtQv056886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2005 10:39:56 +0100 (CET) (envelope-from sobomax@portaone.com) Message-ID: <4215B7EA.5000004@portaone.com> Date: Fri, 18 Feb 2005 11:39:54 +0200 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ticso@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> <20050218093502.GS753@cicely12.cicely.de> In-Reply-To: <20050218093502.GS753@cicely12.cicely.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/685/Wed Jan 26 10:08:24 2005 clamav-milter version 0.80j on www.portaone.com X-Virus-Status: Clean cc: kientzle@FreeBSD.ORG cc: Kaspars cc: freebsd-current@FreeBSD.ORG cc: Robert Watson cc: Steve Kargl cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Subject: Re: Change tar to GNU X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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 11:07:15 -0000 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 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. That's a valid point. I think kientzle is likely to be interested in adding that functionality. -Maxim