home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.11 / text0085.txt < prev    next >
Encoding:
Internet Message Format  |  1987-07-18  |  999 b 

  1. From: harvard!husc6!bunker!zink@seismo.CSS.GOV (David Zink)
  2.  
  3. In article <8362@ut-sally.UUCP> henry@utzoo.UUCP (Henry Spencer) writes:
  4. )From: henry@utzoo.UUCP (Henry Spencer)
  5. )
  6. )As a counterpoint to Kenneth Almquist's example of tar fouling up links,
  7. )try the following:
  8. )
  9. )    echo hi >one
  10. )    ln one two
  11. )    ls one two | cpio -o >/tmp/foo
  12. )    rm one two
  13. )    cpio -i one </tmp/foo
  14. )    cpio -i two </tmp/foo
  15. )
  16. )Now we have cpio creating two files where there was supposed to be only one
  17. )with two links.  Note that tar would get this one right!  (Although you would
  18. )have to be careful to get the order right, admittedly a wart.)
  19.  
  20. Actually This should always create TWO FILES! Unless you want to go to
  21. the effort of proving that one has not been modified when two is removed.
  22. We're seeing two separate invocations of cpio with no knowledge of each
  23. other -- How could it be correct to link them ??
  24. :g/^>/s//;-)/
  25.  
  26. [ Um, haven't we about beat this subsubject to death?  - mod ]
  27.  
  28. Volume-Number: Volume 11, Number 86
  29.  
  30.