Let me see this clear, during your experiments you have discovered that:
- A shell script can have any name you give it, even if it is a misleading name.
- A shell script can execute other scripts and programs, even itself.
- A script can delete files.
And you filed a bug against it. How do you think anyone can get rid of these
bugs? What use would a shell script have, if it could not execute other programs or even do such simple actions as deleting files?
I think
you didn't get the point here, the bug is in this case not in the computer, but in front of it.
You can get rid of all these bugs with a simple rule of conduct: Don't execute ever a shell script from an untrusted source.