[fpc-pascal] run pascal programs as scripts

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 25 11:34:23 CEST 2011


On Mon, 25 Apr 2011 10:24:58 +0200
"Ludo Brands" <ludo.brands at free.fr> wrote:

> > One solution:
> > PATH=YourDirectory:$PATH; script.pas
> 
> I prefer to keep the PATH intact. I'll use:
> bash -c "PATH=YourDirectory:$PATH; script.pas"

That's the same. To change the PATH you must use
export PATH=
in bash.

 
> > Another solution:
> > A parameter could be added to instantfpc to specify the compiler.
> 
> Would be the most elegant solution. I understand the "search in the
> directory of calling program first" is not very Linux though.

I added the option --compiler=. It's already in the fpc version of
instantfpc.

Mattias



More information about the fpc-pascal mailing list