[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strange behavior with echo.
From: |
Jørgen Hermanrud Fjeld |
Subject: |
Strange behavior with echo. |
Date: |
Tue, 24 Oct 2000 17:02:45 +0200 |
Hi. I was having trouble with echo not properly updating the mtime. Here is a
printout that pretty much shows what I mean:
**********************************
address@hidden NetControl]$ /sbin/hwclock;date;stat block.conf; echo "kafe" >
block.conf; stat block.conf; touch block.conf; stat block.conf; echo "kafe" >
block.conf; stat block.conf;
Tue Oct 24 17:04:07 2000 -0,629838 seconds
tir okt 24 17:04:06 CEST 2000
File: "block.conf"
Size: 5 Allocated Blocks: 8 Filetype: Regular File
Mode: (0660/-rw-rw----) Uid: ( 502/ jhf) Gid: ( 505/ jhf)
Device: 0,5 Inode: 291196 Links: 1
Access: Tue Oct 24 17:03:44 2000
Modify: Tue Oct 24 16:58:53 2000
Change: Tue Oct 24 16:58:53 2000
File: "block.conf"
Size: 5 Allocated Blocks: 8 Filetype: Regular File
Mode: (0660/-rw-rw----) Uid: ( 502/ jhf) Gid: ( 505/ jhf)
Device: 0,5 Inode: 291196 Links: 1
Access: Tue Oct 24 17:03:44 2000
Modify: Tue Oct 24 16:59:15 2000
Change: Tue Oct 24 16:59:15 2000
File: "block.conf"
Size: 5 Allocated Blocks: 8 Filetype: Regular File
Mode: (0660/-rw-rw----) Uid: ( 502/ jhf) Gid: ( 505/ jhf)
Device: 0,5 Inode: 291196 Links: 1
Access: Tue Oct 24 17:04:07 2000
Modify: Tue Oct 24 17:04:07 2000
Change: Tue Oct 24 16:59:15 2000
File: "block.conf"
Size: 5 Allocated Blocks: 8 Filetype: Regular File
Mode: (0660/-rw-rw----) Uid: ( 502/ jhf) Gid: ( 505/ jhf)
Device: 0,5 Inode: 291196 Links: 1
Access: Tue Oct 24 17:04:07 2000
Modify: Tue Oct 24 16:59:15 2000
Change: Tue Oct 24 16:59:15 2000
address@hidden NetControl]$
**********************************
Seemingly the mtime is going backwards when echo operates on the file.
--
Sincerely
Jørgen Hermanrud Fjeld
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Strange behavior with echo.,
Jørgen Hermanrud Fjeld <=