What bug? rm did exactly what you told it to do. The "bug" is not in the command but in the person using it.