[fpc-pascal] Parsing commandline parameters with wildcards on Linux

Sven Barth pascaldragon at googlemail.com
Sun Apr 10 14:15:02 CEST 2011

On 10.04.2011 13:45, David W Noon wrote:
> On Sun, 10 Apr 2011 11:50:56 +0200 (CEST), Michael Van Canneyt wrote
> about Re: [fpc-pascal] Parsing commandline parameters with wildcards on
> Linux:
>> On Sun, 10 Apr 2011, Bart wrote:
> [snip]
>>> I would prefer to expand the wildcards by myself, but it seems I have
>>> no access to what the user actually typed on the commandline?
>> You cannot access that. If you want the wildcards, the user must
>> escape them himself.
> A program can open /proc/self/cmdline as a text file, and retrieve its
> command line to re-parse it for itself.

Quick test: this does also contain the already extended command line.


More information about the fpc-pascal mailing list