Talk:Native shebang: Difference between revisions

Example problem
(Example problem)
Line 64:
 
:If you are sure it doesn't work then flag it as incorrect and put any extra info to help in recreating your problem here in the talk page. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 07:04, 26 September 2014 (UTC)
 
Here is what I get on OpenBSD (and OSX)
 
<pre>$ chmod +x /usr/local/bin/script_gcc.c echo.c; ./echo.c Hello, world
./echo.c: line 6: syntax error near unexpected token `('
./echo.c: line 6: `int main(int argc, char **argv, char **envp){'</pre>
 
Here is what I get on Linux:
 
<pre>$ chmod +x /usr/local/bin/script_gcc.c echo.c; ./echo.c Hello, world
-bash: ./echo.c: /usr/local/bin/script_gcc.c: bad interpreter: No such file or directory
</pre>
 
Does it work for you? If so, what do you have for /usr/local/bin/script_gcc.sh (which is referenced by the C implementation, but not included in the C implementation)? Also, what OS are you using? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 23:10, 13 July 2015 (UTC)
6,951

edits