"command not found" when running a shell script. What did I break?
Fresh3 days ago
Mar 15, 202680665 viewsConfidence Score0%
0%
Problem
I'm on OSX Snow Leopard. Here's the full contents of : When I try to run it from terminal: Okay. Fair enough. I'll give it executable permission, then try again: Hmmm. Maybe it'll work if I use bash explicitly? I'll change the file's contents to: And I get the exact same results. What could I have …
Error Output
#!/bin/sh echo wow
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: "command not found" when running a shell script. What did I break?
Low Risk
Absolutely nothing. Only executables in one of the directories in can be run directly, and is (usually) never in . Specify the path to the executable, i.e. .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix