delete01.sh 265 B

123456789101112131415161718
  1. #! /bin/sh
  2. # Deleting a member after a big one was destroying the archive.
  3. . ./preset
  4. . $srcdir/before
  5. set -e
  6. genfile -l 50000 > file1
  7. genfile -l 1024 > file2
  8. tar cf archive file1 file2
  9. tar f archive --delete file2
  10. tar tf archive
  11. out="\
  12. file1
  13. "
  14. . $srcdir/after