In our previous episode, Luca Olivetti said:
> > 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).

Or change the syntax in a way that the last command is not a wildcard.

mv/cp work that way, they assume the last argument is a destination, and all
others are generated by wildcards.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to