. "$suitedir/rsync.fns"
-HOME="$scratchdir"
CVSIGNORE='*.junk'
-export HOME CVSIGNORE
+export CVSIGNORE
set -x
makepath "$fromdir/bar/down/to/foo/too"
makepath "$fromdir/bar/down/to/bar/baz"
makepath "$fromdir/mid/for/foo/and/that/is/who"
+makepath "$fromdir/new/keep/this"
+makepath "$fromdir/new/lose/this"
cat >"$fromdir/.filt" <<EOF
exclude down
: .filt-temp
# These should float at the end of the path.
+ foo/s?b/
- foo/*/
+# Test how /** differs from /***
+- new/keep/**
+- new/lose/***
# Test some normal excludes. Competing lines are paired.
+ t[o]/
- to
rm -r "$chkdir"/foo/down
rm -r "$chkdir"/mid/for/foo/and
+rm -r "$chkdir"/new/keep/this
+rm -r "$chkdir"/new/lose
rm "$chkdir"/foo/file[235-9]
rm "$chkdir"/bar/down/to/foo/to "$chkdir"/bar/down/to/foo/file[235-9]
rm "$chkdir"/mid/for/foo/extra