ken@rochester.UUCP (Mohorovicic discontinuity) (09/10/85)
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!