|Think about Loose Coupling|
Re: why does open ">..." sometimes touches the directory?by flexvault (Prior)
|on Feb 05, 2013 at 09:27 UTC||Need Help??|
Since you're on Linux, what you are seeing is "normal". Occasionally I get interrupted and forget where I put a file, I can go to the head of the file system and follow the updated directories to locate the file. ( Hint: all directories are 'touch'ed, and on a very active system this technique may not work. ) When installing your *nix, you can turn this feature off to get better performance. Usually flash drives and Live CD/DVDs are build this way.
If you have administrative rights you can use the 'ln -s' command to bypass how you access the file, for example:
The actual directories to 'myscript' will have their timestamps updated, but the symbolic link '/mark' will not change. ( If that is what you want ).
However as a system admin, I would be very concerned about 'end users' not wanting to show that they added/updated a file.
Update: This tested correctly on AIX, but after reading dave_the_m comments, I tried it on a "debian" and a "suse" systems with mixed results.
"Well done is better than well said." - Benjamin Franklin