4
0

delete02.sh 315 B

1234567891011121314151617181920212223242526
  1. #! /bin/sh
  2. # Deleting a member with the archive from stdin was not working correctly.
  3. . ./preset
  4. . $srcdir/before
  5. set -e
  6. genfile -l 3073 -p zeros > 1
  7. cp 1 2
  8. cp 2 3
  9. tar cf archive 1 2 3
  10. tar tf archive
  11. cat archive | tar f - --delete 2 > archive2
  12. echo -----
  13. tar tf archive
  14. out="\
  15. 1
  16. 2
  17. 3
  18. -----
  19. 1
  20. 3
  21. "
  22. . $srcdir/after