On 21/12/15 17:18, Dan Jacobson wrote:
> $ man perlop # has a 50 line section called
>    Operator Precedence and Associativity
> 
> Might (info "(coreutils) test invocation") not fully specify test's?
> Might (info "(coreutils) expr invocation") not fully specify expr's?

expr precedence is quite well described I think.
How about this for test(1):

commit fd92e4f9c0c7465472660948008879e7e6df1de8
Author: Pádraig Brady <p...@draigbrady.com>
Date:   Mon Dec 21 17:57:30 2015 +0000

    doc: describe test operator precedence and associativity

    * doc/coreutils.texi (Connectives for test): Add notes
    on precedence and associativity.
    Fixes http://bugs.gnu.org/22216

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 33be4d8..9fffc82 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -12645,18 +12645,23 @@ The usual logical connectives.
 @item ! @var{expr}
 @opindex !
 True if @var{expr} is false.
+@samp{!} has lower precedence than
+all components of @var{expr}.

 @item @var{expr1} -a @var{expr2}
 @opindex -a
 @cindex logical and operator
 @cindex and operator
 True if both @var{expr1} and @var{expr2} are true.
+@samp{-a} is left associative,
+and has a higher precedence than @samp{-o}.

 @item @var{expr1} -o @var{expr2}
 @opindex -o
 @cindex logical or operator
 @cindex or operator
 True if either @var{expr1} or @var{expr2} is true.
+@samp{-o} is left associative.

 @end table





Reply via email to