Re:Lines of code that changed everything
by Hitton on Wednesday November 27, 2019 @04:28PM
(#21652295)
Also "rm -rf /*". It taught generations of sysadmins and programmers not to run code they don't understand.
[ Parent
| on HN ]
Re:Lines of code that changed everything
by magoghm on Thursday November 28, 2019 @12:40AM
(#21654868)
To err is human, to really foul up requires the root password.
Re:Lines of code that changed everything
by 0x8BADF00D on Wednesday November 27, 2019 @05:43PM
(#21652900)
More generally, it taught us to be careful with string substitution and interpolation.
Re:Lines of code that changed everything
by Izkata on Wednesday November 27, 2019 @09:25PM
(#21654153)
There'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 . /*