But what's your point? You can also be a jerk and do
$ cat nice.sh
rm -rf $HOME
$
In the end the user trusts the program/script to not be harmful. That's why we have the browser platform (which shields programs (aka web apps) from the local file system) and advanced permission management in the popular app stores ("this app wants to access your local file system").