rm.sh (429B)
1 #!/bin/sh 2 3 mkdir tmp 4 cd tmp 5 6 mkdir a 7 mkdir b 8 mkdir c 9 10 touch f1 11 touch f2 12 touch f3 13 14 ../../lumia addnew | sort 15 ../../lumia rm f1 16 # Note: this doesn't check what happens when you try to remove this 17 # file without '-f', since it seems to be a paint to try to make 18 # rm believe that we're in a tty 19 chmod 444 f2 20 ../../lumia rm -f f2 21 echo "a" > a/meh 22 ../../lumia addnew a 23 ../../lumia rm a f3 c 24 ../../lumia check | sort 25 26 cd .. 27 rm -rf tmp