Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code could be compiled like normal Free Pascal code?<div><br></div><div><div>
<font class="Apple-style-span" face="'courier new', monospace">$ cat hello.pas </font></div><div><font class="Apple-style-span" face="'courier new', monospace">#!/usr/bin/env instantfpc</font></div><div><font class="Apple-style-span" face="'courier new', monospace">program Hello;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">begin</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre"> </span>writeln('Hello World!')</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">end.</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">$ fpc hello.pas </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Free Pascal Compiler version 2.4.4 [2011/05/01] for i386</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Copyright (c) 1993-2010 by Florian Klaempfl</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Target OS: Darwin for i386</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Compiling hello.pas</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">hello.pas(1,1) Error: Illegal char constant</font></div><div><font class="Apple-style-span" face="'courier new', monospace">hello.pas(1,2) Fatal: Syntax error, "BEGIN" expected but "const string" found</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Fatal: Compilation aborted</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)</font></div>
<div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
<br><div class="gmail_quote">On Fri, Oct 14, 2011 at 6:29 PM, ik <span dir="ltr"><<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><br><div class="gmail_quote"><div class="im">On Sat, Oct 15, 2011 at 00:25, Andrew Pennebaker <span dir="ltr"><<a href="mailto:andrew.pennebaker@gmail.com" target="_blank">andrew.pennebaker@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
E.g., if fpi existed, I would add a shebang like this to my code:<div><br></div><div><font face="'courier new', monospace">#!/usr/bin/env fpi</font><br clear="all"><div><br></div></div></blockquote></div><div><br>
<a href="http://wiki.freepascal.org/InstantFPC" target="_blank">InstantFPC</a><br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div>Cheers,<div> <br><br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><div></div><font color="#888888"><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
</font></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>