This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Inferior command line arguments
On Fri, Sep 28, 2001 at 03:27:14PM -0400, Andrew Cagney wrote:
>
> Unfortunatly ``--'' already has certain semantics. Detecting it
> wouldn't be sufficient. Consider things like:
>
> --argument-expected --
> -- --poor-programe-name-choice --poor-core-file-choice
> gdb --args -- gdb --args -- program arg arg
>
> Tom's --args -- is somewhat grotesque but at least it is well defined.
> Something like:
>
> gdb --- gdb --- program arg arg
>
> might be possible but it is really sugar for ``--args --''.
As much as I'd prefer '--' (those objections, while completely correct,
could be overcome with a bit of work; I admit I hadn't thought of
them), I'd rather see '---' than --args --, because it doesn't allow
for the confusing semantics of '--args' without the '--'.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer