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

Luca Olivetti luca at ventoso.org
Sun Apr 10 10:04:12 CEST 2011


Al 10/04/11 01:34, En/na Bart ha escrit:

> Obviously this is a common scenario on Linux, so how to treat it?

You don't, accept the fact and don't try to oppose resistance ;-)

> 
> 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?

The only way is to single quote parameters:

./scopy '*' y '*.bak'

(see, e.g., the manual page for find).

Bye
-- 
Luca



More information about the fpc-pascal mailing list