cc: austin-group-l@opengroup.org
Subject: Re: Re: Re: Operators in 1003.1
--------
> So | and || are "operators". Left a little vague is the "one or more"
> part because only some combination are legal. < doesn't combine with >
> to make >< even though they are both operators. And is ||| one
> operator, or two operators || + | or | + || or something else?
> (Probably something else - a mistake ;-)
>
>
These are the characters that operators are made from.
Just as with C, the longest combination that makes up
an operator (from left to right) is an operator.
Thus ||| would be parsed as || | and would give a syntax error.
An extension could use ||| as an operator just as zsh, bash,
and ksh93 use <<< as an operator, not as << <.
There are many combinations that are not used although many
of them are extensions in some implementations, for exampe
|&, ;& <(, and >(
in ksh.
David Korn
dgk@research.att.com
|