I guess these just don't match my personal definition of a software bug... I was expecting an unexpected result as a product of good programming. This is just "5 reasons this line of javascript shouldn't have been written" and seems to be more about UNIX permissions than code.
I don't know anyone who defines a "bug" as "an unexpected result as a product of good programming." Bugs are when code is wrong: when it doesn't do what it says, when it doesn't do what was asked of it, when it doesn't do what the user reasonably expects. Bugs are not the result of good programming.
I disagree. I would say there is a distinction between an error and a bug. There's certainly some grey area there, but, for example, if my code sets permissions for a directory instead of a file, I made an error. If my code sets permissions for a file, but produces unexpected results in certain cases because of an implementation detail, then that's a bug.
A bug is code that doesn't behave as the author intended it to. It doesn't matter if the bug is due to some subtle interaction in the language, or just plain bone-headedness on the part of the programmer.
Is it at all possible for there to be 5 distinct and unexpected results caused by a single, well-written line of code? You're right that these aren't subtle bugs affecting a large piece of software, but why would you expect that given the title?