You can get the parameters by quoting and escaping wildcards
I know about quoting/escaping.
What I really meant was, I'ld like to process the wildcards myself, without making the end-user using un-common syntax.
The end-user is going to expect typing *, not '*'.
I'll just go with the flow and accept that wildcard expansion is there and deal wiht it.
As marcov explained to me, the last parameter on the (expanded) commandline in this case will be "dest", this is in fact how "cp" in linux works.
If you are in a directory that contains the files "1", "2", "3" and a directory "x" (all without quotes), then the following command wil in fact copy all files to the "x" directory:
bart@simenon:~/test/>cp *
This is because "x" wil be the last parameter in the expanded wildcard list.
I guess Linux users are supposed to be smart enough to realize this, and so not to forget to actually type the "dest" parameter.
Bart