Earlier quoted context omitted.
That's not buggy, that's a text file with it's executable bit set, which is actually potentially dangerous.
Not if you're opening it in a text editor.
Now, you could hardcode a list of "safe" apps, or add some kind of "I swear I'm safe" declaration to the app's plist, but that has its own set of problems. A one-time "this seems funky to me, are you actually intending to do this?" is a simple and safe default.