6 ms·
More generally, it taught us to be careful with string substitution and interpolation.
by 0x8BADF00D 7y ago
More generally, it taught us to be careful with string substitution and interpolation.
- Analemma_ 7y agoWell, "us" except Unix and Unix-like developers, where "rm -rf /*" still works like it always did, unless your rm added --no-preserve-root or some similar ugly hack.
- Izkata 7y agoThere's actually (at least) two versions of GP's comment - unsafe code/data, what you appear to be referring to: rm -rf $FOO/* And typos, which is what I first thought of upon reading it: rm -rf . /*