| 1 | #!/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=$(mktemp -d ) |
| 7 | |
| 8 | ( |
| 9 | set -ex |
| 10 | cd ${TESTDIR} |
| 11 | mkdir 1/ |
| 12 | # make a few files for testing. |
| 13 | touch 1/a 1/b 1/c 1/d 1/a~~ |
| 14 | dd if=/dev/zero of=1/e bs=512 count=2 |
| 15 | cp -al 1 2 |
| 16 | cow-shell touch 1/a |
| 17 | # 0.9 deleted this file, not good. Test that it works now. |
| 18 | ls 1/a~~ |
| 19 | ) |
| 20 | RESULT=$? |
| 21 | |
| 22 | rm -rf ${TESTDIR} |
| 23 | |
| 24 | exit $RESULT |