Shebang not working - OS X
- Posted by Tuishimi Jul 06, 2009
- 1309 views
I can run my code manually by invoking the interpreter followed by the source code:
eui /Applications/MAMP/cgi-bin/ctrl.exw
Works great!
If I put the shebang of #!/Applications/euphoria/bin/eui into my code and try to run it that way, I get the error:
ZuGzUg:cgi-bin mitch$ ./ctrl.exw -bash: ./ctrl.exw: /Applications/euphoria/bin/eui^M: bad interpreter: No such file or directory
This usually indicates that there is a CR in the code. It was indeed copied from my Windows box, but I did a search/replace on \r and found only \n. The file encoding is UTF-8.
I am sure there is a simple solution but it escapes me. (Get it? Escapes... \n... nevermind.)
Any thoughts on this would be appreciated. I use TextMate as my editor. I also have BBEdit and Coda available.