Damien Miller | d1e26cf | 2013-07-25 12:11:18 +1000 | [diff] [blame] | 1 | # $OpenBSD: sftp-cmds.sh,v 1.14 2013/06/21 02:26:26 djm Exp $ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 2 | # Placed in the Public Domain. |
| 3 | |
| 4 | # XXX - TODO: |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 5 | # - chmod / chown / chgrp |
| 6 | # - -p flag for get & put |
| 7 | |
| 8 | tid="sftp commands" |
| 9 | |
Darren Tucker | 933e4f1 | 2003-09-04 14:26:31 +1000 | [diff] [blame] | 10 | # test that these files are readable! |
| 11 | for i in `(cd /bin;echo l*)` |
| 12 | do |
| 13 | if [ -r $i ]; then |
| 14 | GLOBFILES="$GLOBFILES $i" |
| 15 | fi |
| 16 | done |
| 17 | |
Darren Tucker | cca1bdb | 2003-07-19 20:11:54 +1000 | [diff] [blame] | 18 | # Path with embedded quote |
| 19 | QUOTECOPY=${COPY}".\"blah\"" |
| 20 | QUOTECOPY_ARG=${COPY}'.\"blah\"' |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 21 | # File with spaces |
| 22 | SPACECOPY="${COPY} this has spaces.txt" |
| 23 | SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt" |
| 24 | # File with glob metacharacters |
| 25 | GLOBMETACOPY="${COPY} [metachar].txt" |
Darren Tucker | cca1bdb | 2003-07-19 20:11:54 +1000 | [diff] [blame] | 26 | |
Darren Tucker | ff32d7c | 2012-06-30 15:04:13 +1000 | [diff] [blame] | 27 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 28 | mkdir ${COPY}.dd |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 29 | |
| 30 | verbose "$tid: lls" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 31 | (echo "lcd ${OBJ}" ; echo "lls") | ${SFTP} -D ${SFTPSERVER} 2>&1 | \ |
Tim Rice | dce65cf | 2008-03-13 18:21:06 -0700 | [diff] [blame] | 32 | grep copy.dd >/dev/null 2>&1 || fail "lls failed" |
Damien Miller | 4cd5fba | 2008-03-12 23:59:43 +1100 | [diff] [blame] | 33 | |
| 34 | verbose "$tid: lls w/path" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 35 | echo "lls ${OBJ}" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \ |
Tim Rice | dce65cf | 2008-03-13 18:21:06 -0700 | [diff] [blame] | 36 | grep copy.dd >/dev/null 2>&1 || fail "lls w/path failed" |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 37 | |
| 38 | verbose "$tid: ls" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 39 | echo "ls ${OBJ}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 40 | || fail "ls failed" |
| 41 | # XXX always successful |
| 42 | |
| 43 | verbose "$tid: shell" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 44 | echo "!echo hi there" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 45 | || fail "shell failed" |
| 46 | # XXX always successful |
| 47 | |
| 48 | verbose "$tid: pwd" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 49 | echo "pwd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 50 | || fail "pwd failed" |
| 51 | # XXX always successful |
| 52 | |
| 53 | verbose "$tid: lpwd" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 54 | echo "lpwd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 55 | || fail "lpwd failed" |
| 56 | # XXX always successful |
| 57 | |
| 58 | verbose "$tid: quit" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 59 | echo "quit" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 60 | || fail "quit failed" |
| 61 | # XXX always successful |
| 62 | |
| 63 | verbose "$tid: help" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 64 | echo "help" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 65 | || fail "help failed" |
| 66 | # XXX always successful |
| 67 | |
| 68 | rm -f ${COPY} |
| 69 | verbose "$tid: get" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 70 | echo "get $DATA $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 71 | || fail "get failed" |
| 72 | cmp $DATA ${COPY} || fail "corrupted copy after get" |
| 73 | |
Darren Tucker | 0240ff7 | 2003-10-08 17:52:10 +1000 | [diff] [blame] | 74 | rm -f ${COPY} |
| 75 | verbose "$tid: get quoted" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 76 | echo "get \"$DATA\" $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | 0240ff7 | 2003-10-08 17:52:10 +1000 | [diff] [blame] | 77 | || fail "get failed" |
| 78 | cmp $DATA ${COPY} || fail "corrupted copy after get" |
| 79 | |
Darren Tucker | c99a19b | 2004-04-16 17:58:28 +1000 | [diff] [blame] | 80 | if [ "$os" != "cygwin" ]; then |
Darren Tucker | 0240ff7 | 2003-10-08 17:52:10 +1000 | [diff] [blame] | 81 | rm -f ${QUOTECOPY} |
| 82 | cp $DATA ${QUOTECOPY} |
| 83 | verbose "$tid: get filename with quotes" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 84 | echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
| 85 | || fail "get failed" |
Darren Tucker | 0240ff7 | 2003-10-08 17:52:10 +1000 | [diff] [blame] | 86 | cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes" |
| 87 | rm -f ${QUOTECOPY} ${COPY} |
Darren Tucker | c99a19b | 2004-04-16 17:58:28 +1000 | [diff] [blame] | 88 | fi |
Darren Tucker | 0240ff7 | 2003-10-08 17:52:10 +1000 | [diff] [blame] | 89 | |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 90 | rm -f "$SPACECOPY" ${COPY} |
| 91 | cp $DATA "$SPACECOPY" |
| 92 | verbose "$tid: get filename with spaces" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 93 | echo "get ${SPACECOPY_ARG} ${COPY}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 94 | || fail "get failed" |
| 95 | cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces" |
| 96 | |
| 97 | rm -f "$GLOBMETACOPY" ${COPY} |
| 98 | cp $DATA "$GLOBMETACOPY" |
| 99 | verbose "$tid: get filename with glob metacharacters" |
| 100 | echo "get \"${GLOBMETACOPY}\" ${COPY}" | \ |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 101 | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "get failed" |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 102 | cmp ${COPY} "$GLOBMETACOPY" || \ |
| 103 | fail "corrupted copy after get with glob metacharacters" |
| 104 | |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 105 | rm -f ${COPY}.dd/* |
| 106 | verbose "$tid: get to directory" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 107 | echo "get $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 108 | || fail "get failed" |
Damien Miller | d1e26cf | 2013-07-25 12:11:18 +1000 | [diff] [blame] | 109 | cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get" |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 110 | |
| 111 | rm -f ${COPY}.dd/* |
| 112 | verbose "$tid: glob get to directory" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 113 | echo "get /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 114 | || fail "get failed" |
| 115 | for x in $GLOBFILES; do |
| 116 | cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" |
| 117 | done |
| 118 | |
| 119 | rm -f ${COPY}.dd/* |
| 120 | verbose "$tid: get to local dir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 121 | (echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 122 | || fail "get failed" |
Damien Miller | d1e26cf | 2013-07-25 12:11:18 +1000 | [diff] [blame] | 123 | cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get" |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 124 | |
| 125 | rm -f ${COPY}.dd/* |
| 126 | verbose "$tid: glob get to local dir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 127 | (echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 128 | || fail "get failed" |
| 129 | for x in $GLOBFILES; do |
| 130 | cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" |
| 131 | done |
| 132 | |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 133 | rm -f ${COPY} |
| 134 | verbose "$tid: put" |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 135 | echo "put $DATA $COPY" | \ |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 136 | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "put failed" |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 137 | cmp $DATA ${COPY} || fail "corrupted copy after put" |
| 138 | |
Darren Tucker | e7f7580 | 2003-09-07 09:32:58 +1000 | [diff] [blame] | 139 | if [ "$os" != "cygwin" ]; then |
Darren Tucker | cca1bdb | 2003-07-19 20:11:54 +1000 | [diff] [blame] | 140 | rm -f ${QUOTECOPY} |
| 141 | verbose "$tid: put filename with quotes" |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 142 | echo "put $DATA \"$QUOTECOPY_ARG\"" | \ |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 143 | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "put failed" |
Darren Tucker | cca1bdb | 2003-07-19 20:11:54 +1000 | [diff] [blame] | 144 | cmp $DATA ${QUOTECOPY} || fail "corrupted copy after put with quotes" |
Darren Tucker | e7f7580 | 2003-09-07 09:32:58 +1000 | [diff] [blame] | 145 | fi |
Darren Tucker | cca1bdb | 2003-07-19 20:11:54 +1000 | [diff] [blame] | 146 | |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 147 | rm -f "$SPACECOPY" |
| 148 | verbose "$tid: put filename with spaces" |
| 149 | echo "put $DATA ${SPACECOPY_ARG}" | \ |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 150 | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "put failed" |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 151 | cmp $DATA "$SPACECOPY" || fail "corrupted copy after put with spaces" |
| 152 | |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 153 | rm -f ${COPY}.dd/* |
| 154 | verbose "$tid: put to directory" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 155 | echo "put $DATA ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 156 | || fail "put failed" |
Damien Miller | d1e26cf | 2013-07-25 12:11:18 +1000 | [diff] [blame] | 157 | cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put" |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 158 | |
| 159 | rm -f ${COPY}.dd/* |
| 160 | verbose "$tid: glob put to directory" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 161 | echo "put /bin/l? ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 162 | || fail "put failed" |
| 163 | for x in $GLOBFILES; do |
| 164 | cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" |
| 165 | done |
| 166 | |
| 167 | rm -f ${COPY}.dd/* |
| 168 | verbose "$tid: put to local dir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 169 | (echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 170 | || fail "put failed" |
Damien Miller | d1e26cf | 2013-07-25 12:11:18 +1000 | [diff] [blame] | 171 | cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after put" |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 172 | |
| 173 | rm -f ${COPY}.dd/* |
| 174 | verbose "$tid: glob put to local dir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 175 | (echo "cd ${COPY}.dd"; echo "put /bin/l?") | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Darren Tucker | c43362c | 2003-06-18 22:41:41 +1000 | [diff] [blame] | 176 | || fail "put failed" |
| 177 | for x in $GLOBFILES; do |
| 178 | cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" |
| 179 | done |
| 180 | |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 181 | verbose "$tid: rename" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 182 | echo "rename $COPY ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 183 | || fail "rename failed" |
| 184 | test -f ${COPY}.1 || fail "missing file after rename" |
| 185 | cmp $DATA ${COPY}.1 >/dev/null 2>&1 || fail "corrupted copy after rename" |
| 186 | |
Darren Tucker | a4040f5 | 2003-06-18 22:35:11 +1000 | [diff] [blame] | 187 | verbose "$tid: rename directory" |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 188 | echo "rename ${COPY}.dd ${COPY}.dd2" | \ |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 189 | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || \ |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 190 | fail "rename directory failed" |
Darren Tucker | a4040f5 | 2003-06-18 22:35:11 +1000 | [diff] [blame] | 191 | test -d ${COPY}.dd && fail "oldname exists after rename directory" |
| 192 | test -d ${COPY}.dd2 || fail "missing newname after rename directory" |
| 193 | |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 194 | verbose "$tid: ln" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 195 | echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed" |
Darren Tucker | 4288c53 | 2010-12-05 09:45:50 +1100 | [diff] [blame] | 196 | test -f ${COPY}.2 || fail "missing file after ln" |
| 197 | cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln" |
| 198 | |
| 199 | verbose "$tid: ln -s" |
| 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" |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 203 | |
| 204 | verbose "$tid: mkdir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 205 | echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 206 | || fail "mkdir failed" |
| 207 | test -d ${COPY}.dd || fail "missing directory after mkdir" |
| 208 | |
| 209 | # XXX do more here |
| 210 | verbose "$tid: chdir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 211 | echo "chdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 212 | || fail "chdir failed" |
| 213 | |
| 214 | verbose "$tid: rmdir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 215 | echo "rmdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 216 | || fail "rmdir failed" |
| 217 | test -d ${COPY}.1 && fail "present directory after rmdir" |
| 218 | |
| 219 | verbose "$tid: lmkdir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 220 | echo "lmkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 221 | || fail "lmkdir failed" |
| 222 | test -d ${COPY}.dd || fail "missing directory after lmkdir" |
| 223 | |
| 224 | # XXX do more here |
| 225 | verbose "$tid: lchdir" |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 226 | echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 227 | || fail "lchdir failed" |
| 228 | |
Darren Tucker | ff32d7c | 2012-06-30 15:04:13 +1000 | [diff] [blame] | 229 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
Damien Miller | ce0e60e | 2007-10-26 14:54:12 +1000 | [diff] [blame] | 230 | rm -rf ${QUOTECOPY} "$SPACECOPY" "$GLOBMETACOPY" |
Damien Miller | 8b9cde7 | 2003-01-22 17:53:16 +1100 | [diff] [blame] | 231 | |
Darren Tucker | ed6b0c5 | 2009-10-07 10:43:57 +1100 | [diff] [blame] | 232 | |