• Home
  • Raw
  • Download

Lines Matching full: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
32 grep copy.dd >/dev/null 2>&1 || fail "lls failed"
36 grep copy.dd >/dev/null 2>&1 || fail "lls w/path failed"
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"
83 echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
85 cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes"
86 rm -f ${QUOTECOPY} ${COPY}
88 rm -f "$SPACECOPY" ${COPY}
91 echo "get ${SPACECOPY_ARG} ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
93 cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces"
95 rm -f "$GLOBMETACOPY" ${COPY}
98 echo "get \"${GLOBMETACOPY}\" ${COPY}" | \
100 cmp ${COPY} "$GLOBMETACOPY" || \
101 fail "corrupted copy after get with glob metacharacters"
103 rm -f ${COPY}.dd/*
105 echo "get $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
107 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
109 rm -f ${COPY}.dd/*
111 echo "get /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
114 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
117 rm -f ${COPY}.dd/*
119 (echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
121 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
123 rm -f ${COPY}.dd/*
125 (echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
128 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
131 rm -f ${COPY}
133 echo "put $DATA $COPY" | \
135 cmp $DATA ${COPY} || fail "corrupted copy after put"
141 cmp $DATA ${QUOTECOPY} || fail "corrupted copy after put with quotes"
147 cmp $DATA "$SPACECOPY" || fail "corrupted copy after put with spaces"
149 rm -f ${COPY}.dd/*
151 echo "put $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
153 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put"
155 rm -f ${COPY}.dd/*
157 echo "put /bin/l? ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
160 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
163 rm -f ${COPY}.dd/*
165 (echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
167 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put"
169 rm -f ${COPY}.dd/*
171 (echo "cd ${COPY}.dd"; echo "put /bin/l?") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
174 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
178 echo "rename $COPY ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
180 test -f ${COPY}.1 || fail "missing file after rename"
181 cmp $DATA ${COPY}.1 >/dev/null 2>&1 || fail "corrupted copy after rename"
184 echo "rename ${COPY}.dd ${COPY}.dd2" | \
187 test -d ${COPY}.dd && fail "oldname exists after rename directory"
188 test -d ${COPY}.dd2 || fail "missing newname after rename directory"
191 echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed"
192 test -f ${COPY}.2 || fail "missing file after ln"
193 cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln"
196 rm -f ${COPY}.2
197 echo "ln -s ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln -s failed"
198 test -h ${COPY}.2 || fail "missing file after ln -s"
201 echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
203 test -d ${COPY}.dd || fail "missing directory after mkdir"
207 echo "chdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
211 echo "rmdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
213 test -d ${COPY}.1 && fail "present directory after rmdir"
216 echo "lmkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
218 test -d ${COPY}.dd || fail "missing directory after lmkdir"
222 echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
225 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2