#!/bin/sh
unset TMPDIR # will mess up the diff if not /tmp

TESTFILE=${TMPDIR:-/tmp}/scrub-t13
mkdir -p $TESTFILE || exit 1

# wrong type of file
$PATH_SCRUB $TESTFILE >t13.out 2>&1
test $? != 0 || exit 1

rmdir $TESTFILE || exit 1

# -X and nonexistant directory
$PATH_SCRUB -X $TESTFILE >>t13.out 2>&1
test $? != 0 || exit 1

# nonexistant file
$PATH_SCRUB  $TESTFILE >>t13.out 2>&1
test $? != 0 || exit 1

diff t13.out t13.exp >t13.diff
