options.sh 231 B

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