[fpc-devel] Paramstr trailing spaces, bug or not?
Pierre Free Pascal
pierre at freepascal.org
Sat Dec 24 15:52:56 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é : samedi 24 décembre 2011 14:23
> À : FPC developers' list
> Objet : Re: [fpc-devel] Paramstr trailing spaces, bug or not?
>
> On Fri, 2011-12-23 at 17:25 +0400, Sergei Gorelkin wrote:
> > 23.12.2011 16:18, Marco van de Voort пишет:
> > >> - syswin.inc code looks like any number of delimiters between
> parameters
> > >> are skipped.
> > >
> > > .. unless quoted.
> > >
> > >> - this extra whitespace is added by the makefile, suggesting some
> buggy/incorrect processing in
> > >> make.exe or makefile itself.
> > >
> > > It could be that the makefile logic quotes every argument on windows, in
> > > case of spaces. We would need a kind of strace tool for Windows to find
> out.
> > >
> > ... it is the trailing backslash escaping the following character (C
> style).
> > I could reproduce the issue, by using the following command in 'packages'
> directory:
>
> So to conclude, it's a problem of make that it handles the backslash as
> if it were a escaping-backslash. There's nothing that we have to change,
> except that fpmake has to trim it's input values to handle this buggy
> make-behavior.
I don't think that its buggy behavior,
windows make, be it cygwin, mingw32 (and probably also msys)
do expect only forward slashes for directory separators
and always handles backward slashes as escapes.
Using forward slashes for all parameters of a make call should
avoid the problem...
If you really wanted backward slashes, then, simply use escaped backslashes,
i.e. two in a row,
make install PREFIX=c:\\lazarus\\fpc\\2.7.1\\
Pierre
More information about the fpc-devel
mailing list