Coding on my Mac

I would like to start coding on my mac, but I'm getting an error when I attempt to execute my script

-bash : testscript: command not found

I have verified that the #! line points to the correct directory.

If you have some insight it would be greatly appreciated!

  • D

Try running it as

./testscript

It's bad practice to have the current directory "." on the path. (unlike certain operating systems from Seattle....)