Reputation: 2570
All my bash scripts don't seem to run on Mac OS X Snow Leopard. I created a dummy bash shell script (dummy.sh). The script's permissions are
-rwxr-xr-x@
The script has these lines:
#!/bin/bash
echo
My $PATH is
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
However, every time I try to run dummy.sh in my terminal, I get this error:
-bash: dummy.sh: command not found
bash is confirmed to be in /bin
Can somebody help me to determine why I can't run shell scripts I create?
Upvotes: 2
Views: 6652
Reputation: 80443
You don’t have '.' in your path, and are not calling it with an explicit path.
Upvotes: 2