Dear Rasmus,
In message <[email protected]> you wrote:
>
> Though I'd probably make it
>
> run varname -- arg1 arg2 arg3
Or rather
run arg1 arg2 ... -- varname1 varname2 ...
> instead: Just use -- as a separator [that has precedent as "stop doing
> X, use the rest as argv", though X is normally "interpret options" and
> now it would be "read function names to run"], and only allow a single
> "function" to be called. Otherwise, I don't there's any natural answer
> to whether all the varnameX or only the last should be called with the
> positional arguments.
"run" has always taken any number of vaiable names to run, and this
behaviour should be kept. If there are arguments, these are the
same for all of these. If you need indivisual argument settings,
you must break the sommand in parts combined with &&.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
(null cookie; hope that's ok)