[fpc-pascal] Linux - ExecuteProcess versus fpSystem

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Sep 9 13:50:22 CEST 2011


On 09 Sep 2011, at 13:40, Marco van de Voort wrote:

> In our previous episode, michael.vancanneyt at wisa.be said:
>>
>> You must remove the quotes around 'outputfile.org':
>>
>>  Status:=ExecuteProcess('/path/to/oggenc',['-Q','-- 
>> output=outputfile.org','tempfile.wav']);
>
> While better, this is afaik not required per se, the executing  
> binary can
> strip them also while doing cmdline parsing.

I don't know any programs other than shells that would do so. FPC  
itself doesn't do anything like that either, and hence would complain  
that it couldn't find a file with such a name (quotes are valid  
characters in file names, at least on Unix-like OSes).

In general, such things are only done if the parameters are passed on  
to a shell, because that one will again process quotes (and then it  
could be required if "outputfile.org" contains spaces).


Jonas




More information about the fpc-pascal mailing list