I have a simple shell script:
#!/bin/bash echo test
I can execute script successfully as:
However, the following throws an error:
.: Command not found.
What could be causing the error? This works on el capitan but not on sierra.
I'm running macOS 10.12.3 with the default terminal.
EDIT: I've rewritten the question in order to simplify it with a small test script rather than my actual production script - this shows that the issue is the execution environment rather than the script.