You can test your theory if you run
touch foo <
You can test your theory if you run
touch foo <
You can test your theory, if you run
touch foo <
touch foo <<\EOF
#!/bin/sh
echo hello world
\EOF
./foo
You can test your theory run this
touch foo <