Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Eh, "rm -rf $TEMPDIR/$TEMPFILE" in a shell script is just a couple typos away from deleting everything on the network. Yet I've seen people put crap like that in build scripts even after they've previously inadvertently deleted half the network drives.

Fortunately, despite rm's poor choice of options and bash's poor default handling of variable name typos and the obvious PEBKAC, backups saved the day here.

People are human. Policy ought to reflect this.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: