[fpc-pascal] run pascal programs as scripts
ik
idokan at gmail.com
Thu Mar 24 23:24:18 CET 2011
On Fri, Mar 25, 2011 at 00:21, Mattias Gaertner
<nc-gaertnma at netcologne.de>wrote:
> On Thu, 24 Mar 2011 23:10:08 +0100
> Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com> wrote:
>
> > > Commenting is better. Then the reported error line numbers are still
> > > valid.
> >
> > Yes, but then bash won't recognize it, I suppose
>
> I meant:
>
> Original file:
> #!/usr/bin/instantfpc
>
#!/usr/bin/env instantfpc
That's the cross platform way to do it for all unicses.
> begin
> end.
>
> bash is happy.
>
>
> Preprocessor creates:
> //#!/usr/bin/instantfpc
> begin
> end.
>
> fpc is happy.
>
> Mattias
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110325/009aec0d/attachment.html>
More information about the fpc-pascal
mailing list