options.sh 256 B

1234567891011121314151617
  1. #! /bin/sh
  2. # Ensure that TAR_OPTIONS works in conjunction with old-style options.
  3. . ./preset
  4. TAR_ARCHIVE_FORMATS=auto
  5. . $srcdir/before
  6. set -e
  7. echo > file1
  8. TAR_OPTIONS=--numeric-owner tar chof archive file1
  9. tar tf archive
  10. out="\
  11. file1
  12. "
  13. . $srcdir/after