-----------------
$ touch x y
$ echo "OK" > x
$ ls -lagG --full-time x y
-rw-r--r-- 1 3 2008-10-05 18:13:26.000000000 +0200 x
-rw-r--r-- 1 0 2008-10-05 18:13:18.000000000 +0200 y
$ find . -newer y
./x
$ find . -cnewer y
./x
-----------------
can someone show me the difference?
thanks
-cnewer shows if the file status is changed
-newer shows if the file itself has modified
compare now the output of both files with 'stat' and you will see that
your echo updated the modify and the change status;
first you need to understand the difference between ctime and mtime
-newer y compares mtime with the mtime of y
-cnewer y compares ctime with the mtime (!) of y
see the manpage for stat
Bye.
Jasen