From 22558cdd7e827f3e838e0e1f50f9fb15ec3369e4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 12 Feb 2005 20:25:12 +0000 Subject: [PATCH] Improved checkit() and rsync_ls_lR() to work with filenames that might have spaces. --- testsuite/rsync.fns | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index b4bbd37d..f5c7f45a 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -50,7 +50,7 @@ printmsg() { rsync_ls_lR() { - find "$@" -print | sort | xargs "$TOOLDIR/tls" + find "$@" -print | sort | sed 's/ /\\ /g' | xargs "$TOOLDIR/tls" } rsync_getgroups() { @@ -168,10 +168,7 @@ checkit() { echo "-------------" echo "check how the files compare with diff:" echo "" - for f in `cd "$2"; find . -type f -print ` - do - diff $diffopt "$2"/"$f" "$3"/"$f" || failed=YES - done + diff -r $diffopt "$2" "$3" || failed=YES echo "-------------" echo "check how the directory listings compare with diff:" -- 2.34.1