[fpc-pascal] run pascal programs as scripts
Ludo Brands
ludo.brands at free.fr
Mon Apr 25 12:40:49 CEST 2011
> I added the option --compiler=. It's already in the fpc version of
instantfpc.
Great, thanks.
Ludo
-----Message d'origine-----
De : fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] De la part de Mattias
Gaertner
Envoyé : lundi 25 avril 2011 11:34
À : fpc-pascal at lists.freepascal.org
Objet : Re: [fpc-pascal] run pascal programs as scripts
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
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list