• Home
  • Raw
  • Download

Lines Matching refs:COPY

19 QUOTECOPY=${COPY}".\"blah\""
20 QUOTECOPY_ARG=${COPY}'.\"blah\"'
22 SPACECOPY="${COPY} this has spaces.txt"
23 SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt"
25 GLOBMETACOPY="${COPY} [metachar].txt"
27 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2
28 mkdir ${COPY}.dd
68 rm -f ${COPY}
70 echo "get $DATA $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
72 cmp $DATA ${COPY} || fail "corrupted copy after get"
74 rm -f ${COPY}
76 echo "get \"$DATA\" $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
78 cmp $DATA ${COPY} || fail "corrupted copy after get"
84 echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
86 cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes"
87 rm -f ${QUOTECOPY} ${COPY}
90 rm -f "$SPACECOPY" ${COPY}
93 echo "get ${SPACECOPY_ARG} ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
95 cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces"
97 rm -f "$GLOBMETACOPY" ${COPY}
100 echo "get \"${GLOBMETACOPY}\" ${COPY}" | \
102 cmp ${COPY} "$GLOBMETACOPY" || \
105 rm -f ${COPY}.dd/*
107 echo "get $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
109 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
111 rm -f ${COPY}.dd/*
113 echo "get /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
116 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
119 rm -f ${COPY}.dd/*
121 (echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
123 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
125 rm -f ${COPY}.dd/*
127 (echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
130 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
133 rm -f ${COPY}
135 echo "put $DATA $COPY" | \
137 cmp $DATA ${COPY} || fail "corrupted copy after put"
153 rm -f ${COPY}.dd/*
155 echo "put $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
157 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put"
159 rm -f ${COPY}.dd/*
161 echo "put /bin/l? ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
164 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
167 rm -f ${COPY}.dd/*
169 (echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
171 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put"
173 rm -f ${COPY}.dd/*
175 (echo "cd ${COPY}.dd"; echo "put /bin/l?") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
178 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
182 echo "rename $COPY ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
184 test -f ${COPY}.1 || fail "missing file after rename"
185 cmp $DATA ${COPY}.1 >/dev/null 2>&1 || fail "corrupted copy after rename"
188 echo "rename ${COPY}.dd ${COPY}.dd2" | \
191 test -d ${COPY}.dd && fail "oldname exists after rename directory"
192 test -d ${COPY}.dd2 || fail "missing newname after rename directory"
195 echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed"
196 test -f ${COPY}.2 || fail "missing file after ln"
197 cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln"
200 rm -f ${COPY}.2
201 echo "ln -s ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln -s failed"
202 test -h ${COPY}.2 || fail "missing file after ln -s"
205 echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
207 test -d ${COPY}.dd || fail "missing directory after mkdir"
211 echo "chdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
215 echo "rmdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
217 test -d ${COPY}.1 && fail "present directory after rmdir"
220 echo "lmkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
222 test -d ${COPY}.dd || fail "missing directory after lmkdir"
226 echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
229 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2