OpenWrt Forum Archive

Topic: file changed by vi - possible flash damage on abuse

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I notices something, I do not like about kamikaze vi editor. As I very often use vi just to view the scripts ie. to learn how that system work, I do something like that: vi /etc/firewall.user

-rwxr-xr-x    1 root     root         1037 Sep 29  2007 firewall.user

then view file, and exit vi with q (or q!) command. AFAIK this is the escape command for vi that doesn't change the file. But what I noticed, the date of the file is affected. As this date change remains persistent after reboot, I assume that using vi on an file causes it every time to make extra flash write, that is probably not what I'm happy about.

-rwxr-xr-x    1 root     root         1037 Jan  1 06:37 firewall.user

Do you think it is a bug or at least not desirable behavior?

Bart Prokop

(Last edited by bartprokop on 17 Mar 2008, 19:42)

Looks dodgy.

Use "less".

The discussion might have continued from here.