[fpc-devel] TProcess and arguments with quotes

Martin lazarus at mfriebe.de
Wed Sep 5 11:35:46 CEST 2012


On 05/09/2012 09:55, michael.vancanneyt at wisa.be wrote:
>
> On non-windows, each element in the params list is passed as-is in the 
> argv
> array; No changes are performed at all.

Does FPC offer a utility function to break a "shell style" commandline 
into the correct arguments?
   --foo=abc  --bar="several words"

if in a single line, then the quotes are needed, otherwise "words" 
becomes a 3rd arg.

Is there a function, that breaks the above into 2 args?



More information about the fpc-devel mailing list