extrac04.sh 468 B

123456789101112131415161718192021222324252627
  1. #! /bin/sh
  2. # Check for fnmatch problems in glibc 2.1.95.
  3. . ./preset
  4. . $srcdir/before
  5. set -e
  6. touch file1
  7. mkdir directory
  8. mkdir directory/subdirectory
  9. touch directory/file1
  10. touch directory/file2
  11. touch directory/subdirectory/file1
  12. touch directory/subdirectory/file2
  13. tar -cf archive ./file1 directory
  14. tar -tf archive \
  15. --exclude='./*1' \
  16. --exclude='d*/*1' \
  17. --exclude='d*/s*/*2' | sort
  18. out="\
  19. directory/
  20. directory/file2
  21. directory/subdirectory/
  22. "
  23. . $srcdir/after