michaellehn said:If you click on this link:
Don't do that
with Safari (and in your Prefs you allow Safari to automatically open "Save files") a small shell script gets started, printing "Hallo Welt". There is no warning.
What's interesting: If the shell script starts with "#! /bin/bash" there will be a warning. If it starts with "# /bin/bash" (no "!") there is no warning.
Ok, the line starting with "#" is just a regular comment. For some reason I thought that a comment in the first line has a special meaning. Actually the people at Apple thought that a shell script will always start with "#!". In this case you get a warning when downloading the file. If there is no "#!" in the first line no warning gets issued. This is definetly a security hole!