Lines Matching refs:COPY
11 COPY=${OBJ}/copy
35 QUOTECOPY=${COPY}".\"blah\""
36 QUOTECOPY_ARG=${COPY}'.\"blah\"'
38 SPACECOPY="${COPY} this has spaces.txt"
39 SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt"
41 GLOBMETACOPY="${COPY} [metachar].txt"
43 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.*
44 mkdir ${COPY}.dd
84 rm -f ${COPY}
86 echo "get $DATA $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
88 cmp $DATA ${COPY} || fail "corrupted copy after get"
90 rm -f ${COPY}
92 echo "get \"$DATA\" $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
94 cmp $DATA ${COPY} || fail "corrupted copy after get"
100 echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
102 cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes"
103 rm -f ${QUOTECOPY} ${COPY}
106 rm -f "$SPACECOPY" ${COPY}
109 echo "get ${SPACECOPY_ARG} ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
111 cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces"
113 rm -f "$GLOBMETACOPY" ${COPY}
116 echo "get \"${GLOBMETACOPY}\" ${COPY}" | \
118 cmp ${COPY} "$GLOBMETACOPY" || \
121 rm -f ${COPY}.dd/*
123 echo "get $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
125 cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get"
127 rm -f ${COPY}.dd/*
129 echo "get /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
132 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
135 rm -f ${COPY}.dd/*
137 (echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
139 cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get"
141 rm -f ${COPY}.dd/*
143 (echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
146 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
149 rm -f ${COPY}
151 echo "put $DATA $COPY" | \
153 cmp $DATA ${COPY} || fail "corrupted copy after put"
169 rm -f ${COPY}.dd/*
171 echo "put $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
173 cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put"
175 rm -f ${COPY}.dd/*
177 echo "put /bin/l? ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
180 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
183 rm -f ${COPY}.dd/*
185 (echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
187 cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put"
189 rm -f ${COPY}.dd/*
191 (echo "cd ${COPY}.dd"; echo "put /bin/l?") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
194 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
198 echo "rename $COPY ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
200 test -f ${COPY}.1 || fail "missing file after rename"
201 cmp $DATA ${COPY}.1 >/dev/null 2>&1 || fail "corrupted copy after rename"
204 echo "rename ${COPY}.dd ${COPY}.dd2" | \
207 test -d ${COPY}.dd && fail "oldname exists after rename directory"
208 test -d ${COPY}.dd2 || fail "missing newname after rename directory"
211 echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed"
212 test -f ${COPY}.2 || fail "missing file after ln"
213 cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln"
216 rm -f ${COPY}.2
217 echo "ln -s ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln -s failed"
218 test -h ${COPY}.2 || fail "missing file after ln -s"
221 echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
223 test -d ${COPY}.dd || fail "missing directory after mkdir"
227 echo "chdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
231 echo "rmdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
233 test -d ${COPY}.1 && fail "present directory after rmdir"
236 echo "lmkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
238 test -d ${COPY}.dd || fail "missing directory after lmkdir"
242 echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
245 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.*