summaryrefslogtreecommitdiff
path: root/testsuite/ssh-basic.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-05-18 00:41:46 +0000
committerWayne Davison <wayned@samba.org>2004-05-18 00:41:46 +0000
commit8624daa7f8fb07bd09a3c2106cb0e420ee3da09c (patch)
tree7aba822dbe377c9b20eca4e7b7b80882cf368d3f /testsuite/ssh-basic.test
parent3051c46dc31d6e754da0b695a071ccac04f297ee (diff)
downloadrsync-8624daa7f8fb07bd09a3c2106cb0e420ee3da09c.tar.gz
- Use fromdir and todir instead of FROM and TO.
- Quote the dir expansions to avoid problems with spaces.
Diffstat (limited to 'testsuite/ssh-basic.test')
-rw-r--r--testsuite/ssh-basic.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/ssh-basic.test b/testsuite/ssh-basic.test
index 5fadcf32..f6228fea 100644
--- a/testsuite/ssh-basic.test
+++ b/testsuite/ssh-basic.test
@@ -24,11 +24,11 @@ if ! [ "`ssh -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
fi
# Added by Steve Bonds Feb 2 2003
-# Without this, there are no files in the ${FROM} directory, so rsync has
+# Without this, there are no files in the $fromdir directory, so rsync has
# nothing to do.
hands_setup
-runtest "ssh: basic test" 'checkit "$RSYNC -avH -e ssh --rsync-path=$RSYNC ${FROM}/ localhost:${TO}" ${FROM}/ ${TO}'
+runtest "ssh: basic test" 'checkit "$RSYNC -avH -e ssh --rsync-path=$RSYNC \"$fromdir/\" \"localhost:$todir\"" "$fromdir/" "$todir"'
# Added by Steve Bonds Feb 2 2003
# I assumed that "F1" was intended to hold a single file for testing if
@@ -36,8 +36,8 @@ runtest "ssh: basic test" 'checkit "$RSYNC -avH -e ssh --rsync-path=$RSYNC ${FRO
# it was unset so the "mv" tried to move a parent directory into a
# subdirectory of itself. There is probably a better way of pulling out
# a sample file to rename.
-F1=`ls ${TO} | head -5 | tail -1`
+F1=`ls "$todir" | head -5 | tail -1`
-mv ${TO}/${F1} ${TO}/ThisShouldGo
+mv "$todir/$F1" "$todir/ThisShouldGo"
-runtest "ssh: renamed file" 'checkit "$RSYNC --delete -avH -e ssh --rsync-path=$RSYNC ${FROM}/ localhost:${TO}" ${FROM}/ ${TO}'
+runtest "ssh: renamed file" 'checkit "$RSYNC --delete -avH -e ssh --rsync-path=$RSYNC \"$fromdir/\" \"localhost:$todir\"" "$fromdir/" "$todir"'