HELP!! SVr2 (really tar)

Mohorovicic discontinuity ken at rochester.UUCP
Tue Sep 10 23:04:01 AEST 1985


In article <181 at graffiti.UUCP> peter at 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 at rochester.arpa
USnail:	Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!



More information about the Comp.unix.wizards mailing list