source: MondoRescue/branches/2.2.9/mindi-busybox/testsuite/mv/mv-refuses-mv-dir-to-subdir@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
File size: 459 bytes
Line 
1echo file number one > file1
2echo file number two > file2
3ln -s file2 link1
4mkdir dir1
5TZ=UTC0 touch -d '2000-01-30 05:24:08' dir1/file3
6mkdir there
7busybox mv file1 file2 link1 dir1 there
8test -f there/file1
9test -f there/file2
10test -f there/dir1/file3
11test -L there/link1
12test xfile2 = x`readlink there/link1`
13test ! -e file1
14test ! -e file2
15test ! -e link1
16test ! -e dir1/file3
17set +e
18busybox mv there there/dir1
19if [ $? != 0 ] ; then
20 exit 0;
21fi
22
23exit 1;
Note: See TracBrowser for help on using the repository browser.