From owner-freebsd-current@FreeBSD.ORG Tue Mar 29 18:47:46 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 2978E16A4CE for ; Tue, 29 Mar 2005 18:47:46 +0000 (GMT) Received: from w250.z064001178.sjc-ca.dsl.cnc.net (209-204-181-78.dsl.static.sonic.net [209.204.181.78]) by mx1.FreeBSD.org (Postfix) with SMTP id B776743D2F for ; Tue, 29 Mar 2005 18:47:45 +0000 (GMT) (envelope-from jos@catnook.com) Received: (qmail 41904 invoked by uid 1000); 29 Mar 2005 18:48:07 -0000 Date: Tue, 29 Mar 2005 10:47:45 -0801 From: Jos Backus To: freebsd-current@freebsd.org Message-ID: <20050329184807.GA38296@lizzy.catnook.local> Mail-Followup-To: freebsd-current@freebsd.org References: <20050329041527.GA9586@VARK.MIT.EDU> <20050329062550.GA69824@cirb503493.alcatel.com.au> <02e501c5342c$75bca5b0$6800000a@venti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02e501c5342c$75bca5b0$6800000a@venti> User-Agent: Mutt/1.5.9i Subject: Re: Heads up: gtar gone from base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jos@catnook.com 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 18:47:46 -0000 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. -- Jos Backus jos at catnook.com