This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: >, >>, and "tee" operators


On Tue, Jul 30, 2002 at 11:51:28PM -0400, Andrew Cagney wrote:
> >On Tue, Jul 30, 2002 at 11:25:25PM -0400, Andrew Cagney wrote:
> >
> >>>So in other words, I'd like to stick with 
> >>>
> >
> >>>>>  redirect [-a[ppend]] FILE [COMMAND]
> >>>>>  log [-a[ppend]] FILE [COMMAND]
> >
> >>
> >>Don't forget that prefix `-' and `--' are valid C operators.  You can't 
> >>tell the difference between the above and a valid C expressions.  I 
> >>think that rules `-...' out.
> >
> >
> >Actually, I still disagree - I think that it remains unambiguous where
> >to expect an expression and where to expect command-line syntax. 
> 
> It becomes context depedent :-(  Do we use ``/'' when an expression is 
> the first parameter but ``-'' when a file is the first parameter ....?

No, we use ``/'' for print formatting characters and ``-'' for options. 
Which appears to be exactly the status quo.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]