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.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to