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

Ludo

-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de Mattias
Gaertner
Envoyé : lundi 25 avril 2011 11:34
À : [email protected]
Objet : Re: [fpc-pascal] run pascal programs as scripts


On Mon, 25 Apr 2011 10:24:58 +0200
"Ludo Brands" <[email protected]> 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
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to