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

Andrew Cagney
2002-07-31T03:51:34Z

> 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 ....?

Andrew