[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22216: test, expr Operator Precedence and Associativity
From: |
Pádraig Brady |
Subject: |
bug#22216: test, expr Operator Precedence and Associativity |
Date: |
Mon, 21 Dec 2015 18:00:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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 <address@hidden>
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.
address@hidden 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.
address@hidden 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.
address@hidden is left associative.
@end table
- bug#22216: test, expr Operator Precedence and Associativity, Dan Jacobson, 2015/12/21
- bug#22216: test, expr Operator Precedence and Associativity,
Pádraig Brady <=
- bug#22216: test, expr Operator Precedence and Associativity, 積丹尼 Dan Jacobson, 2015/12/21
- bug#22216: test, expr Operator Precedence and Associativity, 積丹尼 Dan Jacobson, 2015/12/21
- bug#22216: test, expr Operator Precedence and Associativity, 積丹尼 Dan Jacobson, 2015/12/21