logoalt Hacker News

jiehongtoday at 3:11 AM4 repliesview on HN

Oh! Then perhaps the long press required for the iPhone’s action button to trigger is a Molly guard!

Also, perhaps `rm` should be molly guarded to move things to the trash on all systems by default, and delete only if forced to by a flag.

Note: I’d have expected Molly to be a cat, because they tend to be pretty good at disrupting things in my experience.


Replies

yjftsjthsd-htoday at 5:09 AM

> Also, perhaps `rm` should be molly guarded to move things to the trash on all systems by default, and delete only if forced to by a flag.

Not all systems, but some (RHEL, I think?) default alias rm='rm -i', yes

show 1 reply
Modified3019today at 4:12 AM

Seeing long presses implemented for those intermittent and irreversible actions in games is something I‘ve always appreciated. I often end up making errant inputs, especially on keyboards.

A guard I often make for myself is removing/disabling the delete key on my keyboard, and setting FN+Backspace to Delete with whatever control software is involved. I often then repurpose the delete key location to F2, which is typically used to “Edit” a spreadsheet cell or file name.

show 1 reply
denkmoontoday at 3:41 AM

rm has mollyguarding, that's why every invocation of rm you see on the internet is followed by -f

show 1 reply