aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2007-03-04 19:52:07 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2007-03-04 19:52:07 +0000
commit9f3cef91087c68f23d917212fc7b88e7c266feef (patch)
treefca64793e1f529325232078750e78038d76f30e1 /bin
parent41e80f2a220ee5c10153b6973080768883d1eab5 (diff)
downloadsrc-9f3cef91087c68f23d917212fc7b88e7c266feef.tar.gz
src-9f3cef91087c68f23d917212fc7b88e7c266feef.zip
Fix markup.
Notes
Notes: svn path=/head/; revision=167210
Diffstat (limited to 'bin')
-rw-r--r--bin/expr/expr.113
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index 56559a137a95..3f8eabbdde66 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -72,7 +72,10 @@ data type.
.Pp
Operators are listed below in order of increasing precedence; all
are left-associative.
-Operators with equal precedence are grouped within { } symbols.
+Operators with equal precedence are grouped within symbols
+.Ql {
+and
+.Ql } .
.Bl -tag -width indent
.It Ar expr1 Li | Ar expr2
Return the evaluation of
@@ -97,7 +100,7 @@ Return the results of addition or subtraction of integer-valued arguments.
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
.It Ar expr1 Li : Ar expr2
The
-.Dq \&:
+.Dq Li \&:
operator matches
.Ar expr1
against
@@ -105,13 +108,13 @@ against
which must be a basic regular expression.
The regular expression is anchored
to the beginning of the string with an implicit
-.Dq ^ .
+.Dq Li ^ .
.Pp
If the match succeeds and the pattern contains at least one regular
expression subexpression
-.Dq "\e(...\e)" ,
+.Dq Li "\e(...\e)" ,
the string corresponding to
-.Dq "\e1"
+.Dq Li \e1
is returned;
otherwise the matching operator returns the number of characters matched.
If the match fails and the pattern contains a regular expression subexpression