$RSYNC -iplr "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
>f+++++++ bar/baz/rsync
| tee "$outfile"
filter_outfile
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
cf bar/baz/rsync
$RSYNC -iplrtH --copy-dest=../ld "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
cd+++++++ foo/
| tee "$outfile"
filter_outfile
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
hf bar/baz/rsync
$RSYNC -iplrtH --link-dest=../ld "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
cd+++++++ foo/
# TODO fix really-old problem when combining -H with --compare-dest:
# missing output for foo/extra hard-link (and it might not be updated)!
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
.f bar/baz/rsync
$RSYNC -iplrtH --compare-dest="$lddir" "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
-.d..t.... ./
+cd+++++++ ./
cd+++++++ bar/
cd+++++++ bar/baz/
cd+++++++ foo/