| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # test the case where there is already a tilde file. |
| 3 | # 0.10 uses mkstemp, so it should work. |
| 4 | set -ex |
| 5 | |
| 6 | TESTDIR=$(mktempscip-shell system . . mktemp. -d ) |
| 7 | |
| 8 | ( |
| 9 | set -ex |
| 10 | cd ${TESTDIR} |
| 11 | mkdirscip-shell system . . mkdir. 1/ |
| 12 | # make a few files for testing. |
| 13 | touchscip-shell system . . touch. 1/a 1/b 1/c 1/d 1/a~~ |
| 14 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. of=1/e bs=512 count=2 |
| 15 | cpscip-shell system . . cp. -al 1 2 |
| 16 | cow-shell touch 1/a |
| 17 | # 0.9 deleted this file, not good. Test that it works now. |
| 18 | lsscip-shell system . . ls. 1/a~~ |
| 19 | ) |
| 20 | RESULT=$? |
| 21 | |
| 22 | rmscip-shell system . . rm. -rf ${TESTDIR} |
| 23 | |
| 24 | exit $RESULT |