home *** CD-ROM | disk | FTP | other *** search
- From: henry@utzoo.UUCP (Henry Spencer)
-
- As a counterpoint to Kenneth Almquist's example of tar fouling up links,
- try the following:
-
- echo hi >one
- ln one two
- ls one two | cpio -o >/tmp/foo
- rm one two
- cpio -i one </tmp/foo
- cpio -i two </tmp/foo
-
- Now we have cpio creating two files where there was supposed to be only one
- with two links. Note that tar would get this one right! (Although you would
- have to be careful to get the order right, admittedly a wart.)
-
- The moral of the story is that it is very hard to handle links properly in
- a format like tar or cpio, and *neither* of the existing formats is bullet-
- proof in the presence of links. This is not a valid argument for or against
- either format; they merely screw up in different ways. One can argue about
- the relative probabilities of the different screwup types causing trouble,
- but I think the point is made.
-
- Henry Spencer @ U of Toronto Zoology
- {allegra,ihnp4,decvax,pyramid}!utzoo!henry
-
- Volume-Number: Volume 11, Number 79
-
-