Check for bad line end characters on the shebang line. A new line character (lf) is expected - a carriage return (cr) or cr/lf pair will cause grief of the nature you describe.
In reply to Re: bad interpretor error when running scripts off an NFS share
by GrandFather
in thread bad interpretor error when running scripts off an NFS share
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |