After editing a file, the timestamp on the file (according to ls -l) is unchanged. However if stat <filename> is executed, the change timestamp given in the output differs from that given in ls -l:
$ ls -l foo.c -rw-r--r-- 1 Alex 126 Jul 29 17:10 foo.c $ nano foo.c ### File is edited and saved ### $ ls -l foo.c -rw-r--r-- 1 Alex 289 Jul 29 17:10 foo.c $ stat foo.c File: `foo.c' Size: 289 Blocks: 1 IO Block: 1024 regular file Device: a8dc98beh/2833029310d Inode: 562949953426654 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1004/ Alex) Gid: ( 513/ None) Access: 2006-07-29 18:19:09.921875000 -0700 Modify: 2006-07-29 17:10:44.531250000 -0700 Change: 2006-07-29 18:19:15.828125000 -0700 This issue doesn't appear to be isolated to ls -l: it is also causing problems when running make or cvs commit on other files, as make and cvs thinks that the files hasn't been modified. (I've resorted to running touch on the files as a workaround.) A search on Google on "cygwin file timestamp" failed to find anything related. I had deleted my entire Cygwin installation (it is installed on a separate partition), reformatted the partition (NTFS) and reinstalled, but the problem is still occurring. Any ideas on further diagnosing and solving this problem is appreciated. I am running Cygwin on Windows XP Home Edition, SP2. Output of cygcheck -s -v -r > cygcheck.out is attached. Thanks.
cygcheck.out
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/