4 ms·
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
by jiehong 7mo ago
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.
- denkmoon 7mo agorm has mollyguarding, that's why every invocation of rm you see on the internet is followed by -f
- yjftsjthsd-h 7mo agoI think that may be a combination of (IMHO unfortunate) factors: * Yes, on some systems rm is aliased to rm -i by default. * Some scripts will use rm -f because normal rm returns an error if the target already doesn't exist but -f doesn't care. * Finally, sometimes files are just ... I think it's being marked read-only that does it? I've hit this while trying to rm a git checkout; you actually do need to add -f sometimes to succeed. So if you just add -f then it'll always work.
- Modified3019 7mo agoSeeing 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.
- bookofjoe 7mo agoRed team demur: I HATE the iPhone's long press requirement to restart from off. To me, a button that forces me to wait for an unknown and indeterminate period of time before functioning is a FAIL.
- yjftsjthsd-h 7mo ago> 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
- deleted 7mo ago[deleted]