Man accidentally 'deletes his entire company' with one line of bad code
What&#x27;s most epic about this is it&#x27;s in the UNIX Hater&#x27;s Handbook. One of its rants was how better-designed systems would warn you if you were going to nuke your whole system. The reason is that a command to wipe the whole system was more likely a mistake than developer or admin&#x27;s intent. UNIX would do it without blinking. Inherently unsafe programming and scripting combined with tools like that meant lots of UNIX boxes went kaput.<p>And today, over <i>two decades later</i>, a person just accidentally destroyed his entire company with one line without warnings on a UNIX. History repeats when its lessons aren&#x27;t learned. This problem, like setuid, should&#x27;ve been eliminated by design fairly quickly after it was discovered.<p><a href="http:&#x2F;&#x2F;esr.ibiblio.org&#x2F;?p=538" rel="nofollow">http:&#x2F;&#x2F;esr.ibiblio.org&#x2F;?p=538</a><p>EDIT: Added link to ESR&#x27;s review of UNIX Hater&#x27;s Handbook which links to UHH itself. Nicely covers what was rant, what was fixed, and what remains true. Linking in case people want to work on the latter plus my sour relationship with UNIX. :)