Closed sbrl closed 9 years ago
I can’t reproduce this:
$ echo $RANDOM > /tmp/file
$ touch -t 200801010000 /tmp/file
# Modification time: Jan 1 2008
$ ll /tmp/file
-rw------- 1 feh feh 6 Jan 1 2008 /tmp/file
# Access time: Jan 1 2008
$ ll -u /tmp/file
-rw------- 1 feh feh 6 Jan 1 2008 /tmp/file
$ nocache -n 2 cat /tmp/file
26896
# Modification time: unchanged
$ ll /tmp/file
-rw------- 1 feh feh 6 Jan 1 2008 /tmp/file
Please make sure you don’t have the -u
flag to ls
supplied by default, which would display access time.
If you are sure this is a bug, please supply more information, in particular: how to reproduce. Thank you.
Yep, I had the -u
flag supplied by default :P
Thanks for the help anyway :)
If I have a file like this:
And a script like this:
Running the script causes the test file to have it's time of last modification updated. Here's what it looks like after running the above:
I noticed this after my backup script ran I found myself with a whole filesystem with the same last modified time on it :P