logoalt Hacker News

ReDress • today at 9:46 AM • 3 replies • view on HN

I just looked at the first example / utility he implemented; which was 'touch'

Will this actually update the 'last modified' date for an already existing file?

Also, there's a standard way of processing command line arguments on Linux/Unix, which is not being followed here.


Replies

_ache_ • today at 10:07 AM

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.

➕ show 2 replies
lycos • today at 9:48 AM

to be fair the title didn't promise it would be done well

➕ show 1 reply