From owner-freebsd-current@FreeBSD.ORG Tue Mar 29 05:18:48 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 7585A16A4CE for ; Tue, 29 Mar 2005 05:18:48 +0000 (GMT) Received: from s1tank.virtdom.com (s1tank.virtdom.com [12.26.83.50]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C79343D2D for ; Tue, 29 Mar 2005 05:18:47 +0000 (GMT) (envelope-from brian@aljex.com) Received: (qmail 570 invoked by uid 89); 29 Mar 2005 05:22:13 -0000 Received: from ool-43552092.dyn.optonline.net (HELO venti) (brian@aljex.com@67.85.32.146) by s1tank.virtdom.com with SMTP; 29 Mar 2005 05:22:13 -0000 Message-ID: <022c01c5341e$c68a1ad0$6800000a@venti> From: "Brian K. White" To: References: <20050327223238.GA749@polands.org><010401c53385$584a04c0$6800000a@venti> <20050329041527.GA9586@VARK.MIT.EDU> Date: Tue, 29 Mar 2005 00:18:16 -0500 Organization: Aljex Software MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: Heads up: gtar gone from base system 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: Tue, 29 Mar 2005 05:18:48 -0000 ----- Original Message ----- From: "David Schultz" To: "Brian K. White" Cc: Sent: Monday, March 28, 2005 11:15 PM Subject: Re: Heads up: gtar gone from base system > On Mon, Mar 28, 2005, Brian K. White wrote: >> > To move file hierarchies, use a command line like this: >> > >> > tar -cf - -C srcdir . | tar xpf - -C destdir >> >> Why not? >> Isn't that just a slight convenience for this?: >> cd srcdir ; tar cf - . |( cd destdir ; tar xpf - ) > > detsdir: No such file or directory. would -C have created it if it didn't exist? if C means change to a dir first, I would read that as implying that the dir exists to cd into. otherwise it's a convenience for this: cd srcdir ; tar cf - . |( [ -d destdir ] || mkdir -p destdir ;cd destdir ; tar xpf - ) which I'd agree is no longer a slight convenience In any event, we now know the feature was there, merely not demonstrated. Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani