logoalt Hacker News

_ache_ • today at 10:07 AM • 2 replies • view on HN

No it will *replace* or create the files "touched" by an empty file.

Major bug in the first command.

Technically, yes, it updates the last modified date, by actually emptying the file. He should have use "w+" or "a" instead of "w".

PS: I like this guy.


Replies

taspeotis • today at 10:42 AM

Should have used AI

➕ show 1 reply
geocar • today at 10:41 AM

w+ truncates

➕ show 1 reply