From owner-freebsd-current@FreeBSD.ORG Tue Mar 29 19:58:41 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 281FE16A4DA for ; Tue, 29 Mar 2005 19:58:41 +0000 (GMT) Received: from s1tank.virtdom.com (s1tank.virtdom.com [12.26.83.50]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D87443D3F for ; Tue, 29 Mar 2005 19:58:40 +0000 (GMT) (envelope-from brian@aljex.com) Received: (qmail 8670 invoked by uid 89); 29 Mar 2005 20:02:10 -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 20:02:10 -0000 Message-ID: <00ec01c53499$b1ce38d0$6800000a@venti> From: "Brian K. White" To: References: <20050329041527.GA9586@VARK.MIT.EDU><20050329062550.GA69824@cirb503493.alcatel.com.au><02e501c5342c$75bca5b0$6800000a@venti> <20050329184807.GA38296@lizzy.catnook.local> Date: Tue, 29 Mar 2005 14:58:10 -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 19:58:41 -0000 ----- Original Message ----- From: "Jos Backus" To: Sent: Tuesday, March 29, 2005 1:48 PM Subject: Re: Heads up: gtar gone from base system > On Tue, Mar 29, 2005 at 01:56:14AM -0500, Brian K. White wrote: > [snip] >> >( cd srcdir ; tar cf - . ) | ( cd destdir ; tar xpf - ) >> >> All the first perens does is leave you sitting wherever you were before >> starting, whereas my example would have left you sitting in srcdir. >> It makes no functional difference in the tar/untar job itself. > > Not quite; without the first set of parentheses, destdir is interpreted > relative to srcdir. Unless srcdir are meant as symbolic values and dstdir > has > an absolute value, in which case this is not an issue. > > $ cd $HOME > $ pwd > /home/jos > $ (cd /; pwd 1>&2) | (cd /usr; pwd) > / > /usr > $ pwd > /home/jos > $ (cd /; pwd 1>&2) | (cd usr; pwd) > cd: can't cd to usr > /home/jos > / > $ pwd > /home/jos > $ cd /; pwd 1>&2 | (cd usr; pwd) > / > /usr > $ pwd > / > $ > > Note: /home/jos/usr doesn't exist. Duely noted. Hadn't though of that. I am aware of it when using it and do sometimes use relative path and the fact that I'm sitting in srcdir and so a relative path will be relative to srcdir was always just an "obvious of course". Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani