|
Lines 81-86
cp ${DATA} ${DIR}/copy
Link Here
|
| 81 |
$SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed" |
81 |
$SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed" |
| 82 |
diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy" |
82 |
diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy" |
| 83 |
|
83 |
|
|
|
84 |
verbose "$tid: local file to non-existing remote directory" |
| 85 |
scpclean |
| 86 |
rmdir ${DIR2} |
| 87 |
$SCP $scpopts ${DATA} somehost:${DIR2}/ 2> ${COPY2} && fail "copy succeed" |
| 88 |
cat ${COPY2} |
| 89 |
grep -q "Is a directory" ${COPY2} && fail "wrong error message" |
| 90 |
grep -q "Not a directory" ${COPY2} || fail "Can't find expected error message" |
| 91 |
|
| 84 |
verbose "$tid: shell metacharacters" |
92 |
verbose "$tid: shell metacharacters" |
| 85 |
scpclean |
93 |
scpclean |
| 86 |
(cd ${DIR} && \ |
94 |
(cd ${DIR} && \ |
| 87 |
- |
|
|