2011/9/17 Anton Shepelev <anton....@gmail.com>:
> Felipe Monteiro de Carvalho:
>
>> If  FPC Trunk also does not support this, then I'm
>> sure a patch to improve  StringToPPChar  would  be
>> welcome.
>
> I have created issue # 0020279.

If this must be like shell quoting then you also need to allow quoting
with backslash, inside single quotes escaping is not allowed and not
mix single and double quotes.

For example:

param\ eter1 'param\"'eter2' param"eter3' "parameter'4"

should do:

1: param eter1
2: param\"eter2 param"eter3
3: parameter'4

There is a good guide here which I used for similar purpose:
http://www.grymoire.com/Unix/Quote.html

--
cobines
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to