[fpc-devel] Paramstr trailing spaces, bug or not?

Pierre Free Pascal pierre at freepascal.org
Thu Dec 22 19:15:53 CET 2011



> -----Message d'origine-----
> De : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> bounces at lists.freepascal.org] De la part de Joost van der Sluis
> Envoyé : jeudi 22 décembre 2011 17:36
> À : FPC developers' list
> Objet : Re: [fpc-devel] Paramstr trailing spaces, bug or not?
> 
> On Thu, 2011-12-22 at 17:18 +0100, michael.vancanneyt at wisa.be wrote:
> > > With this command-line:
> > >
> > > "fpmake --prefix=bla --baseistall=test"
> > >
> > > paramstr(1) gives "--prefix=bla ". Thus with the trailing space. Is
this
> > > a bug or a feature?
> >
> > It's what the shell has passed on. The paramstr() code doesn't do any
> > parsing on Linux. It returns the elements in argv[]
> 
> Most of the time I'm indeed on Linux, but this case it was Windows. But
> I guess the same thing holds?

Hi Jost,
I am completely unable to reproduce this...
on a windows machine!

Futhermore this behavior would break lots of code
including the compiler itself...
Maybe there is some special configuration you are working on that 
explains this strange behavior...

  Which Windows OS version do you use?
Is it a Virtual machine?
What shell are you using?


Pierre Muller





More information about the fpc-devel mailing list