On Fri, Mar 25, 2011 at 00:21, Mattias Gaertner
<nc-gaert...@netcologne.de>wrote:

> On Thu, 24 Mar 2011 23:10:08 +0100
> Felipe Monteiro de Carvalho <felipemonteiro.carva...@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@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to