Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rochester.UUCP Path: utzoo!linus!philabs!prls!amdimage!amdcad!amd!vecpyr!lll-crg!gymble!umcp-cs!seismo!rochester!ken From: ken@rochester.UUCP (Mohorovicic discontinuity) Newsgroups: net.unix-wizards Subject: Re: HELP!! SVr2 (really tar) Message-ID: <11512@rochester.UUCP> Date: Tue, 10-Sep-85 09:04:01 EDT Article-I.D.: rocheste.11512 Posted: Tue Sep 10 09:04:01 1985 Date-Received: Sat, 14-Sep-85 01:12:26 EDT References: <832@burl.UUCP> <221@drivax.UUCP> <181@graffiti.UUCP> Reply-To: ken@rochester.UUCP (Mohorovicic discontinuity) Organization: Tropic of Cancer Lines: 23 In article <181@graffiti.UUCP> peter@graffiti.UUCP (Peter da Silva) writes: >> cd fromdir; tar cf - . | ( cd todir; tar xf - ) >>... > > ( cd fromdir; tar cf - . ) | ( cd todir; tar xf - ) There is a hidden gotcha here if you use csh. If the directory to a cd which is inside the first ()'s is not a full path name, i.e., relies on cdpath for expansion, the tar chokes. Reason? cd echos the path name when the expansion uses cdpath This is arguably a case for making cd print to stderr or shutting up totally. By using rsh and using the B option on the tars, you get a nice intermachine copier. It has the advantage over rcp of preserving the times. Ken -- UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken@rochester.arpa USnail: Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!