extrac03.sh 269 B

12345678910111213141516171819
  1. #! /bin/sh
  2. # Paths going up and down were inducing extraction loops.
  3. . ./preset
  4. . $srcdir/before
  5. set -e
  6. mkdir directory
  7. tar cfv archive directory/../directory
  8. echo -----
  9. tar xfv archive
  10. out="\
  11. directory/../directory/
  12. -----
  13. directory/../directory/
  14. "
  15. . $srcdir/after