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

Sven Barth pascaldragon at googlemail.com
Thu Dec 22 17:57:00 CET 2011


Am 22.12.2011 17:36, schrieb Joost van der Sluis:
> 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?

AFAIK it's not the same as on Windows you have a "commandline string" 
which needs to be parsed by the application.

Regards,
Sven.




More information about the fpc-devel mailing list