[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Old request 267658 Emphasize operator precedence for "a" over "-o" in ma
From: |
Andreas Metzler |
Subject: |
Old request 267658 Emphasize operator precedence for "a" over "-o" in manpage |
Date: |
Sat, 2 Jan 2016 17:23:25 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hello,
I have been looking on old Debian bugs and have stumbled over 267658
(wishlist!):
| Come to think of it some reminder in man page for the operator
| precedence will be nice.
This would be easy to implement by adding an example:
--- a/find/find.1
+++ b/find/find.1
@@ -1505,7 +1505,13 @@ an error has already occurred.
.SS OPERATORS
.P
-Listed in order of decreasing precedence:
+Listed in order of decreasing precedence (.i.e.
+"find \fIexpr1\fR -o \fIexpr2\fR \fIexpr3\fR"
+equals
+"find \fIexpr1\fR -o \fIexpr2\fR -a \fIexpr3\fR"
+equals
+"find \fIexpr1\fR -o ( \fIexpr2\fR -a \fIexpr3\fR" )
+):
.IP "( \fIexpr\fR )"
However I am not sure this is actually an improvement. If I was
considering operator precedence I would have looked at this part of
the manpage before, OTOH if I combined operators with -a and -o
without thinking about precedence an unlooked at part of the manpage
would not help.
What do you think?
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
- Old request 267658 Emphasize operator precedence for "a" over "-o" in manpage,
Andreas Metzler <=