elliot40404 / bonk

The blazingly fast touch alternative with a sprinkle of mkdir written in rust.
MIT License
97 stars 9 forks source link

URGENT: bonk will delete file contents #7

Closed BartMassey closed 1 year ago

BartMassey commented 1 year ago

Running bonk on an existing file will delete its contents.

$ echo hello >/tmp/hello.txt
$ cat /tmp/hello.txt
hello
$ cargo run /tmp/hello.txt
$ cat /tmp/hello.txt
$

Please see http://github.com/BartMassey/touche for a touch-like inspired by bonk that avoids this sort of problem.

elliot40404 commented 1 year ago

Resolved in 0.3.0. Also thanks for actively reporting the issues.