[fpc-pascal] Parsing commandline parameters with wildcards on Linux
David W Noon
david.w.noon at ntlworld.com
Sun Apr 10 13:45:08 CEST 2011
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.
--
Regards,
Dave [RLU #314465]
=======================================================================
david.w.noon at ntlworld.com (David W Noon)
=======================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110410/cd3ece30/attachment.sig>
More information about the fpc-pascal
mailing list