Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!linus!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: tar fs copy Message-ID: <2892@sun.uucp> Date: Mon, 14-Oct-85 04:30:13 EDT Article-I.D.: sun.2892 Posted: Mon Oct 14 04:30:13 1985 Date-Received: Tue, 15-Oct-85 06:55:42 EDT References: <832@burl.UUCP> <221@drivax.UUCP> <842@burl.UUCP> <240@investor.UUCP> <2226@ukma.UUCP> <636@leadsv.UUCP> Organization: Sun Microsystems, Inc. Lines: 8 > > (cd $1; tar cf - .) | (cd $2; tar xf -) > > Why not ( cd $2; tar -cf - -C $1 . | tar xf - ) ? Because the -C flag to "tar" was added by Berkeley in 4.2BSD; it's not present in all versions of "tar". Guy Harris