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

Daniel Jacobowitz
2002-07-31T03:58:19Z

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