1#! /bin/sh 2 3# see end of file for comment 4 5. ${tstdir-.}/lib.sh 6. ${tstdir-.}/conf.sh 7 8rm -rf dir1 dir2 dir3 9# make the copy-from-here tree 10mkdir dir1 11cd dir1 12generate_tree_1 13# make the tree we want to compare to 14mkdir ../dir2 15cd ../dir2 16generate_tree_1 17rm foo/baz/three.txt 18 19cd .. 20# call -a without -l. 21# we expect no symlink to be in the target tree 22$rsync -Dgortp dir1/ dir3 23compare_trees dir2 dir3 24