News for hackers. Stuff that matters.
Re:Linux 4.5-rc5: efivarfs fixed to avoid “rm -rf /” brickin... by sillysaurus3 on Monday February 22, 2016 @05:37PM (#11154900)
https://github.com/valvesoftware/steam-for-linux/issues/3671...

rm -rf "$STEAMROOT/"*

When $STEAMROOT was empty, "steam apparently deleted everything owned by my user recursively from the root directory. Including my 3tb external drive I back everything up to that was mounted under /media."

Re:Linux 4.5-rc5: efivarfs fixed to avoid “rm -rf /” brickin... by dTal on Monday February 22, 2016 @07:17PM (#11155447)
Wow that is an annoying example. Aside from not following the Golden Rule of shell variables (always consider the unset case), why on Earth didn't they just write rm -rf "$STEAMROOT" ? The trailing slash and asterisk do nothing. Cargo-cult scripting. Ick.