3 ms·
I know this is HN, but never ever write this without explaining exactly what it does. The chances that that one guy who's never come across it will try it to s
by tpoacher 4y ago
I know this is HN, but never ever write this without explaining exactly what it does.
The chances that that one guy who's never come across it will try it to see what it does is extremely low, but definitely non-zero.
- iLoveOncall 4y agoTo be fair I think modern versions of your favorite shell warn you when trying to run it, asking for confirmation even with the -f. (For that one guy: it deletes every file on your computer)
- jwilk 4y agoSUSv4 requires that "if an operand resolves to the root directory, rm shall write a diagnostic message to standard error and do nothing more with such operands": https://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/r... But last time I checked, busybox's rm happily removed everything. :-/