in reply to Compare script

It's not clear to me what you are trying to do. Can you create some code that anyone can run to duplicate your problem? Sprinkle some more prints in your code, and show us the output.

One way to check if a file is old is to use -M.